From 40a22f0cf55535dfcca57ea8f7cac4f0153670ff Mon Sep 17 00:00:00 2001 From: basil00 Date: Thu, 21 Mar 2019 19:25:46 +0800 Subject: [PATCH] Fix #168 --- sys/windivert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/windivert.c b/sys/windivert.c index 66f4c3b..711db36 100644 --- a/sys/windivert.c +++ b/sys/windivert.c @@ -3418,7 +3418,7 @@ static void windivert_get_ipv6_addr(const FWPS_INCOMING_VALUES0 *fixed_vals, FWP_VALUE0 value = fixed_vals->incomingValue[idx].value; if (value.type != FWP_BYTE_ARRAY16_TYPE) { - RtlZeroMemory(&addr, 16); + addr[0] = addr[1] = addr[2] = addr[3] = 0; return; } for (i = 16-1; i >= 0; i--)