From 9b97df78c12827fdaabe04624e7b41871194ac90 Mon Sep 17 00:00:00 2001 From: ozaki-r Date: Fri, 5 Aug 2016 00:52:02 +0000 Subject: [PATCH] CID 1364759: fix using uninitialized value --- sys/net/route.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/route.c b/sys/net/route.c index e770b113040c..2c6ff73165f9 100644 --- a/sys/net/route.c +++ b/sys/net/route.c @@ -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 -__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 #ifdef RTFLUSH_DEBUG @@ -757,7 +757,7 @@ rt_getifp(struct rt_addrinfo *info, struct psref *psref) 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];