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.
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to