summaryrefslogtreecommitdiff
path: root/common/lpf.c
diff options
context:
space:
mode:
authorDavid Hankins <dhankins@isc.org>2008-03-18 18:28:14 +0000
committerDavid Hankins <dhankins@isc.org>2008-03-18 18:28:14 +0000
commit4619c0a2fb805a27baaa48728a564f9870300b29 (patch)
tree7366084f7686797f0360bcca7c5336237ebc950d /common/lpf.c
parent507fe25f11f51eed58fffc49bf252784ba851074 (diff)
downloadisc-dhcp-4619c0a2fb805a27baaa48728a564f9870300b29.tar.gz
- A memory leak when using omapi has been fixed. [ISC-Bugs #17560]
Diffstat (limited to 'common/lpf.c')
-rw-r--r--common/lpf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/lpf.c b/common/lpf.c
index 45ff5034..5dda6fa5 100644
--- a/common/lpf.c
+++ b/common/lpf.c
@@ -214,6 +214,8 @@ static void lpf_gen_filter_setup (info)
{
struct sock_fprog p;
+ memset(&p, 0, sizeof(p));
+
/* Set up the bpf filter program structure. This is defined in
bpf.c */
p.len = dhcp_bpf_filter_len;