summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcp/statmsg
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-10 00:39:47 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-06-10 00:39:47 +0000
commit8c913293005db33c671612618dda7a754cf05ff8 (patch)
treedeeda1e0603c4c93cc2a63682ac6e20cfb2f5572 /usr.sbin/dhcp/statmsg
parentf7d6d89cb8589b3578ec61958687a446570db823 (diff)
more sockaddr initializations.
Diffstat (limited to 'usr.sbin/dhcp/statmsg')
-rw-r--r--usr.sbin/dhcp/statmsg/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/dhcp/statmsg/main.c b/usr.sbin/dhcp/statmsg/main.c
index 0c267a0d9c5..9cbe88e2aed 100644
--- a/usr.sbin/dhcp/statmsg/main.c
+++ b/usr.sbin/dhcp/statmsg/main.c
@@ -44,7 +44,7 @@
#ifndef lint
static char copyright[] =
-"$Id: main.c,v 1.1 1998/08/18 03:43:36 deraadt Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
+"$Id: main.c,v 1.2 2002/06/10 00:39:46 itojun Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -88,6 +88,7 @@ int main (argc, argv, envp)
error ("unable to create sysconf socket: %m");
/* XXX for now... */
+ memset(&name, 0, sizeof(name));
name.sun_family = PF_UNIX;
strcpy (name.sun_path, "/var/run/sysconf");
name.sun_len = ((sizeof name) - (sizeof name.sun_path) +