]> git.pld-linux.org Git - packages/dhcp.git/blob - dhcp-memory.patch
- patch no-ipv6 - don't require ipv6 support in kernel
[packages/dhcp.git] / dhcp-memory.patch
1 diff -up dhcp-3.0.6/minires/ns_name.c.memory dhcp-3.0.6/minires/ns_name.c
2 --- dhcp-3.0.6/minires/ns_name.c.memory 2004-06-10 13:59:40.000000000 -0400
3 +++ dhcp-3.0.6/minires/ns_name.c        2007-07-10 11:43:29.000000000 -0400
4 @@ -71,6 +71,11 @@ ns_name_ntop(const u_char *src, char *ds
5         dn = dst;
6         eom = dst + dstsiz;
7  
8 +       if (dn >= eom) {
9 +               errno = EMSGSIZE;
10 +               return (-1);
11 +       }
12 +
13         while ((n = *cp++) != 0) {
14                 if ((n & NS_CMPRSFLGS) != 0) {
15                         /* Some kind of compression pointer. */
16 diff -up dhcp-3.0.6/common/packet.c.memory dhcp-3.0.6/common/packet.c
17 --- dhcp-3.0.6/common/packet.c.memory   2007-05-01 16:42:55.000000000 -0400
18 +++ dhcp-3.0.6/common/packet.c  2007-07-10 11:43:29.000000000 -0400
19 @@ -140,6 +140,7 @@ void assemble_udp_ip_header (interface, 
20         struct ip ip;
21         struct udphdr udp;
22  
23 +       memset( &ip, '\0', sizeof ip);
24         /* Fill out the IP header */
25         IP_V_SET (&ip, 4);
26         IP_HL_SET (&ip, 20);
27 diff -up dhcp-3.0.6/common/lpf.c.memory dhcp-3.0.6/common/lpf.c
28 --- dhcp-3.0.6/common/lpf.c.memory      2007-07-10 11:43:29.000000000 -0400
29 +++ dhcp-3.0.6/common/lpf.c     2007-07-10 11:43:29.000000000 -0400
30 @@ -246,6 +246,7 @@ static void lpf_tr_filter_setup (info)
31         struct interface_info *info;
32  {
33         struct sock_fprog p;
34 +       memset(&p,'\0', sizeof(struct sock_fprog));
35  
36         /* Set up the bpf filter program structure.    This is defined in
37            bpf.c */
This page took 0.066834 seconds and 3 git commands to generate.