Module Name: src Committed By: kefren Date: Sat Oct 12 18:55:40 UTC 2013
Modified Files: src/usr.sbin/ldpd: mpls_routes.c Log Message: zeroize the rest of the comparable struct before adding it to the rb tree To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/usr.sbin/ldpd/mpls_routes.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/mpls_routes.c diff -u src/usr.sbin/ldpd/mpls_routes.c:1.22 src/usr.sbin/ldpd/mpls_routes.c:1.23 --- src/usr.sbin/ldpd/mpls_routes.c:1.22 Wed Jul 31 06:58:23 2013 +++ src/usr.sbin/ldpd/mpls_routes.c Sat Oct 12 18:55:40 2013 @@ -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 @@ check_route(struct rt_msg * rg, uint rle 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;