Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ldpd ensure variables are initialised
details: https://anonhg.NetBSD.org/src/rev/5ed66a63fdcc
branches: trunk
changeset: 791000:5ed66a63fdcc
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Oct 30 08:41:57 2013 +0000
description:
ensure variables are initialised
diffstat:
usr.sbin/ldpd/socketops.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 6918b5ea90c4 -r 5ed66a63fdcc usr.sbin/ldpd/socketops.c
--- a/usr.sbin/ldpd/socketops.c Wed Oct 30 08:41:38 2013 +0000
+++ b/usr.sbin/ldpd/socketops.c Wed Oct 30 08:41:57 2013 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index