summaryrefslogtreecommitdiffstats
path: root/contrib/isc-dhcp/common/socket.c
diff options
context:
space:
mode:
authormurray <murray@FreeBSD.org>2003-01-15 10:31:26 +0000
committermurray <murray@FreeBSD.org>2003-01-15 10:31:26 +0000
commit017255e081bcbadf47f5affc7eea7c047e38a70f (patch)
treecf39c38365a0b53bd8bc09fd59f38b2eee8a01cf /contrib/isc-dhcp/common/socket.c
parenta0b500f866e54d9ce8def00d72daac852505461e (diff)
downloadFreeBSD-src-017255e081bcbadf47f5affc7eea7c047e38a70f.zip
FreeBSD-src-017255e081bcbadf47f5affc7eea7c047e38a70f.tar.gz
Import ISC DHCP 3.0.1 RC10 client.
Diffstat (limited to 'contrib/isc-dhcp/common/socket.c')
-rw-r--r--contrib/isc-dhcp/common/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/isc-dhcp/common/socket.c b/contrib/isc-dhcp/common/socket.c
index b4ecd14..6b105c6 100644
--- a/contrib/isc-dhcp/common/socket.c
+++ b/contrib/isc-dhcp/common/socket.c
@@ -51,7 +51,7 @@
#ifndef lint
static char copyright[] =
-"$Id: socket.c,v 1.55.2.1 2002/01/17 19:42:55 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: socket.c,v 1.55.2.2 2002/06/09 22:21:20 murray Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -114,11 +114,11 @@ int if_register_socket (info)
once = 1;
#endif
+ memset (&name, 0, sizeof (name));
/* Set up the address we're going to bind to. */
name.sin_family = AF_INET;
name.sin_port = local_port;
name.sin_addr = local_address;
- memset (name.sin_zero, 0, sizeof (name.sin_zero));
/* Make a socket... */
if ((sock = socket (AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0)
OpenPOWER on IntegriCloud