From 0 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Mon, 15 Oct 2007 23:59:47 +0000 Subject: [PATCH 07] Apply dhcp-3.0.3-rh-assemble_udp_ip_header.patch diff --git a/dhcp/common/lpf.c b/dhcp/common/lpf.c index defaced..defaced 100644 --- a/dhcp/common/lpf.c +++ b/dhcp/common/lpf.c @@ -301,6 +301,7 @@ static void lpf_tr_filter_setup (info) /* Set up the bpf filter program structure. This is defined in bpf.c */ + memset(&p, '\0', sizeof p); p.len = dhcp_bpf_tr_filter_len; p.filter = dhcp_bpf_tr_filter; diff --git a/dhcp/common/packet.c b/dhcp/common/packet.c index defaced..defaced 100644 --- a/dhcp/common/packet.c +++ b/dhcp/common/packet.c @@ -145,6 +145,7 @@ void assemble_udp_ip_header (interface, buf, bufix, memset (&ip, 0, sizeof ip); /* Fill out the IP header */ + memset( &ip, '\0', sizeof ip); IP_V_SET (&ip, 4); IP_HL_SET (&ip, 20); ip.ip_tos = IPTOS_LOWDELAY;