Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2015 17:50:14 +0000 (UTC)
From:      Ermal Luçi <eri@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r286026 - stable/10/sys/netinet
Message-ID:  <201507291750.t6THoELf057956@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eri
Date: Wed Jul 29 17:50:14 2015
New Revision: 286026
URL: https://svnweb.freebsd.org/changeset/base/286026

Log:
  MFC 285325
  Correct issue presented in r285051 by properly initializing variable.
  
  Differential Revision:	 https://reviews.freebsd.org/D3036

Modified:
  stable/10/sys/netinet/ip_input.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/netinet/ip_input.c
==============================================================================
--- stable/10/sys/netinet/ip_input.c	Wed Jul 29 17:46:16 2015	(r286025)
+++ stable/10/sys/netinet/ip_input.c	Wed Jul 29 17:50:14 2015	(r286026)
@@ -1382,7 +1382,8 @@ ip_forward(struct mbuf *m, int srcrt)
 	if (ro.ro_rt != NULL) {
 		ia = ifatoia(ro.ro_rt->rt_ifa);
 		ifa_ref(&ia->ia_ifa);
-	}
+	} else
+		ia = NULL;
 #ifndef IPSEC
 	/*
 	 * 'ia' may be NULL if there is no route for this destination.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507291750.t6THoELf057956>