summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/dispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/dhcpd/dispatch.c')
-rw-r--r--usr.sbin/dhcpd/dispatch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/dhcpd/dispatch.c b/usr.sbin/dhcpd/dispatch.c
index f4f25781933..be9ee3a78a5 100644
--- a/usr.sbin/dhcpd/dispatch.c
+++ b/usr.sbin/dhcpd/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.28 2010/11/19 08:00:56 ajacoutot Exp $ */
+/* $OpenBSD: dispatch.c,v 1.29 2011/11/12 15:39:52 krw Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998, 1999
@@ -391,6 +391,8 @@ got_one(struct protocol *l)
} u;
struct interface_info *ip = l->local;
+ bzero(&u, sizeof(u));
+
if ((result = receive_packet(ip, u.packbuf, sizeof u,
&from, &hfrom)) == -1) {
warning("receive_packet failed on %s: %s", ip->name,