svn commit: r286026 - stable/10/sys/netinet

Ermal Luçi eri at FreeBSD.org
Wed Jul 29 17:50:15 UTC 2015


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.


More information about the svn-src-stable-10 mailing list