Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ldpd zeroize the rest of the comparable struct befo...
details: https://anonhg.NetBSD.org/src/rev/0b4c2875edfd
branches: trunk
changeset: 790459:0b4c2875edfd
user: kefren <kefren%NetBSD.org@localhost>
date: Sat Oct 12 18:55:40 2013 +0000
description:
zeroize the rest of the comparable struct before adding it to the rb tree
diffstat:
usr.sbin/ldpd/mpls_routes.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r 6be6e493e81f -r 0b4c2875edfd usr.sbin/ldpd/mpls_routes.c
--- a/usr.sbin/ldpd/mpls_routes.c Sat Oct 12 18:46:12 2013 +0000
+++ b/usr.sbin/ldpd/mpls_routes.c Sat Oct 12 18:55:40 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpls_routes.c,v 1.22 2013/07/31 06:58:23 kefren Exp $ */
+/* $NetBSD: mpls_routes.c,v 1.23 2013/10/12 18:55:40 kefren Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -648,6 +648,8 @@
so_pref->sa.sa_family = AF_INET;
so_pref->sa.sa_len = sizeof(struct sockaddr_in);
+ so_pref->sin.sin_port = 0;
+ memset(&so_pref->sin.sin_zero, 0, sizeof(so_pref->sin.sin_zero));
if (rg->m_rtm.rtm_flags & RTF_CLONING)
so_gate = NULL;
Home |
Main Index |
Thread Index |
Old Index