]> git.pld-linux.org Git - packages/dhcp.git/blob - dhcp-memory.patch
- introduced -client-dirs subpackage that provides:
[packages/dhcp.git] / dhcp-memory.patch
1 diff -up dhcp-3.0.6/common/packet.c.memory dhcp-3.0.6/common/packet.c
2 --- dhcp-3.0.6/common/packet.c.memory   2007-05-01 16:42:55.000000000 -0400
3 +++ dhcp-3.0.6/common/packet.c  2007-07-10 11:43:29.000000000 -0400
4 @@ -140,6 +140,7 @@ void assemble_udp_ip_header (interface, 
5         struct ip ip;
6         struct udphdr udp;
7  
8 +       memset( &ip, '\0', sizeof ip);
9         /* Fill out the IP header */
10         IP_V_SET (&ip, 4);
11         IP_HL_SET (&ip, 20);
12 diff -up dhcp-3.0.6/common/lpf.c.memory dhcp-3.0.6/common/lpf.c
13 --- dhcp-3.0.6/common/lpf.c.memory      2007-07-10 11:43:29.000000000 -0400
14 +++ dhcp-3.0.6/common/lpf.c     2007-07-10 11:43:29.000000000 -0400
15 @@ -246,6 +246,7 @@ static void lpf_tr_filter_setup (info)
16         struct interface_info *info;
17  {
18         struct sock_fprog p;
19 +       memset(&p,'\0', sizeof(struct sock_fprog));
20  
21         /* Set up the bpf filter program structure.    This is defined in
22            bpf.c */
This page took 0.025832 seconds and 3 git commands to generate.