From 4a01c41d099bdc04df94135cae44f6ccf2aee94e Mon Sep 17 00:00:00 2001 From: Daiyuu Nobori Date: Thu, 21 Dec 2017 23:21:31 +0900 Subject: [PATCH] Fixed the bug which occurs the L2TP/IPsec connection error with Android Oreo. --- src/Cedar/IPsec_IkePacket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cedar/IPsec_IkePacket.c b/src/Cedar/IPsec_IkePacket.c index eda8f17d..c9897847 100644 --- a/src/Cedar/IPsec_IkePacket.c +++ b/src/Cedar/IPsec_IkePacket.c @@ -3055,7 +3055,7 @@ void IkeHMac(IKE_HASH *h, void *dst, void *key, UINT key_size, void *data, UINT // Generation of data 2 data2_size = h->HashSize + hmac_block_size; - for (i = 0;i < HMAC_BLOCK_SIZE;i++) + for (i = 0;i < hmac_block_size;i++) { data2[i] = k[i] ^ 0x5c; }