Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net CID 1364759: fix using uninitialized value
details: https://anonhg.NetBSD.org/src/rev/434b0588a46c
branches: trunk
changeset: 346844:434b0588a46c
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Fri Aug 05 00:52:02 2016 +0000
description:
CID 1364759: fix using uninitialized value
diffstat:
sys/net/route.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b75e1ce62c6e -r 434b0588a46c sys/net/route.c
--- a/sys/net/route.c Fri Aug 05 00:51:14 2016 +0000
+++ b/sys/net/route.c Fri Aug 05 00:52:02 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: route.c,v 1.173 2016/08/01 03:15:30 ozaki-r Exp $ */
+/* $NetBSD: route.c,v 1.174 2016/08/05 00:52:02 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
#endif
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.173 2016/08/01 03:15:30 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.174 2016/08/05 00:52:02 ozaki-r Exp $");
#include <sys/param.h>
#ifdef RTFLUSH_DEBUG
@@ -757,7 +757,7 @@
struct ifaddr *
rt_getifa(struct rt_addrinfo *info, struct psref *psref)
{
- struct ifaddr *ifa;
+ struct ifaddr *ifa = NULL;
const struct sockaddr *dst = info->rti_info[RTAX_DST];
const struct sockaddr *gateway = info->rti_info[RTAX_GATEWAY];
const struct sockaddr *ifaaddr = info->rti_info[RTAX_IFA];
Home |
Main Index |
Thread Index |
Old Index