diff -up dhcp-4.0.0//common/lpf.c.memory dhcp-4.0.0//common/lpf.c --- dhcp-4.0.0//common/lpf.c.memory 2007-07-12 20:43:41.000000000 -1000 +++ dhcp-4.0.0//common/lpf.c 2008-08-01 10:08:01.000000000 -1000 @@ -245,6 +245,7 @@ static void lpf_tr_filter_setup (info) struct interface_info *info; { struct sock_fprog p; + memset(&p,'\0', sizeof(struct sock_fprog)); /* Set up the bpf filter program structure. This is defined in bpf.c */ diff -up dhcp-4.0.0//common/packet.c.memory dhcp-4.0.0//common/packet.c --- dhcp-4.0.0//common/packet.c.memory 2007-11-30 11:51:43.000000000 -1000 +++ dhcp-4.0.0//common/packet.c 2008-08-01 10:08:01.000000000 -1000 @@ -135,6 +135,7 @@ void assemble_udp_ip_header (interface, struct ip ip; struct udphdr udp; + memset( &ip, '\0', sizeof ip); /* Fill out the IP header */ IP_V_SET (&ip, 4); IP_HL_SET (&ip, 20); diff -up dhcp-4.0.0//minires/ns_name.c.memory dhcp-4.0.0//minires/ns_name.c --- dhcp-4.0.0//minires/ns_name.c.memory 2005-03-17 10:15:17.000000000 -1000 +++ dhcp-4.0.0//minires/ns_name.c 2008-08-01 10:08:01.000000000 -1000 @@ -71,6 +71,11 @@ ns_name_ntop(const u_char *src, char *ds dn = dst; eom = dst + dstsiz; + if (dn >= eom) { + errno = EMSGSIZE; + return (-1); + } + while ((n = *cp++) != 0) { if ((n & NS_CMPRSFLGS) != 0) { /* Some kind of compression pointer. */