]> git.pld-linux.org Git - packages/dhcp.git/blame - dhcp-memory.patch
- updated to 4.4.3-P1
[packages/dhcp.git] / dhcp-memory.patch
CommitLineData
9eb7afc0
JR
1diff -urNp -x '*.orig' dhcp-4.3.5.org/common/lpf.c dhcp-4.3.5/common/lpf.c
2--- dhcp-4.3.5.org/common/lpf.c 2016-09-27 21:16:50.000000000 +0200
3+++ dhcp-4.3.5/common/lpf.c 2021-04-01 22:09:12.139265409 +0200
4@@ -247,6 +247,7 @@ static void lpf_gen_filter_setup (info)
8c878a4c
ER
5 struct interface_info *info;
6 {
7 struct sock_fprog p;
8+ memset(&p,'\0', sizeof(struct sock_fprog));
9
9eb7afc0
JR
10 memset(&p, 0, sizeof(p));
11
12diff -urNp -x '*.orig' dhcp-4.3.5.org/common/packet.c dhcp-4.3.5/common/packet.c
13--- dhcp-4.3.5.org/common/packet.c 2016-09-27 21:16:50.000000000 +0200
14+++ dhcp-4.3.5/common/packet.c 2021-04-01 22:09:12.139265409 +0200
15@@ -145,6 +145,7 @@ void assemble_udp_ip_header (interface,
16
17 memset (&ip, 0, sizeof ip);
18
19+ memset( &ip, '\0', sizeof ip);
20 /* Fill out the IP header */
21 IP_V_SET (&ip, 4);
22 IP_HL_SET (&ip, 20);
This page took 0.057582 seconds and 4 git commands to generate.