1
1
Files
zyxel-vmg8825_b50b-cfw/package/dhcpv6/patches/026-ZYXEL_BUGFIX_DHCP6s_crash_FrankShih.patch
T
2026-04-17 18:33:03 +02:00

21 lines
797 B
Diff
Executable File

Index: wide-dhcpv6-20080615/dhcp6s.c
===================================================================
--- wide-dhcpv6-20080615.orig/dhcp6s.c 2021-01-06 05:38:52.625163715 +0000
+++ wide-dhcpv6-20080615/dhcp6s.c 2021-01-06 05:42:50.701461294 +0000
@@ -3936,7 +3936,6 @@
int num = 0;
char NumStr[512] = {0};
struct json_object *dhcp6sJsonMsg = NULL;
- dhcp6sJsonMsg = json_object_new_object();
dhcp6sMsg.ClientIPv6release_flag = false;
char *msg = NULL;
int msgLen = 0;
@@ -3968,6 +3967,7 @@
dhcp6sMsg.isIA_NA = true;
else
dhcp6sMsg.isIA_NA = false;
+ dhcp6sJsonMsg = json_object_new_object();
dhcp6sMsg.ClientIPv6deletAddr = true;
dhcp6sMsg.ClientIPv6release_flag = true;
sprintf(dhcp6sMsg.ClientIPV6Linklocaladdr, "%s", ipV6LinklocalAddr);