Module Name: src Committed By: mrg Date: Wed Oct 30 08:41:57 UTC 2013
Modified Files: src/usr.sbin/ldpd: socketops.c Log Message: ensure variables are initialised To generate a diff of this commit: cvs rdiff -u -r1.32 -r1.33 src/usr.sbin/ldpd/socketops.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/ldpd/socketops.c diff -u src/usr.sbin/ldpd/socketops.c:1.32 src/usr.sbin/ldpd/socketops.c:1.33 --- src/usr.sbin/ldpd/socketops.c:1.32 Thu Oct 17 18:10:23 2013 +++ src/usr.sbin/ldpd/socketops.c Wed Oct 30 08:41:57 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: socketops.c,v 1.32 2013/10/17 18:10:23 kefren Exp $ */ +/* $NetBSD: socketops.c,v 1.33 2013/10/30 08:41:57 mrg Exp $ */ /* * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -336,6 +336,7 @@ bind_socket(int s, int stype) assert (stype == AF_INET || stype == AF_INET6); + memset(&su, 0, sizeof su); if (stype == AF_INET) { su.sin.sin_len = sizeof(su.sin); su.sin.sin_family = AF_INET;