diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-10 00:39:47 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-06-10 00:39:47 +0000 |
commit | 8c913293005db33c671612618dda7a754cf05ff8 (patch) | |
tree | deeda1e0603c4c93cc2a63682ac6e20cfb2f5572 /usr.sbin/dhcp/sysconfd/sysconfd.c | |
parent | f7d6d89cb8589b3578ec61958687a446570db823 (diff) |
more sockaddr initializations.
Diffstat (limited to 'usr.sbin/dhcp/sysconfd/sysconfd.c')
-rw-r--r-- | usr.sbin/dhcp/sysconfd/sysconfd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/dhcp/sysconfd/sysconfd.c b/usr.sbin/dhcp/sysconfd/sysconfd.c index 2529ccd2abd..8fc2c1c8329 100644 --- a/usr.sbin/dhcp/sysconfd/sysconfd.c +++ b/usr.sbin/dhcp/sysconfd/sysconfd.c @@ -44,7 +44,7 @@ #ifndef lint static char copyright[] = -"$Id: sysconfd.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: sysconfd.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" @@ -93,6 +93,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) + |