svn commit: r264998 - head/sys/net

Alexander V. Chernikov melifaro at FreeBSD.org
Sun Apr 27 02:20:10 UTC 2014


Author: melifaro
Date: Sun Apr 27 02:20:09 2014
New Revision: 264998
URL: http://svnweb.freebsd.org/changeset/base/264998

Log:
  Move up fibnum to ensure it is always defined.
  
  Found by:	ian
  MFC with:	r264987

Modified:
  head/sys/net/rtsock.c

Modified: head/sys/net/rtsock.c
==============================================================================
--- head/sys/net/rtsock.c	Sun Apr 27 02:19:53 2014	(r264997)
+++ head/sys/net/rtsock.c	Sun Apr 27 02:20:09 2014	(r264998)
@@ -531,6 +531,8 @@ route_output(struct mbuf *m, struct sock
 	union sockaddr_union saun;
 	sa_family_t saf = AF_UNSPEC;
 
+	fibnum = so->so_fibnum;
+
 #define senderr(e) { error = e; goto flush;}
 	if (m == NULL || ((m->m_len < sizeof(long)) &&
 		       (m = m_pullup(m, sizeof(long))) == NULL))
@@ -582,8 +584,6 @@ route_output(struct mbuf *m, struct sock
 			senderr(error);
 	}
 
-	fibnum = so->so_fibnum;
-
 	/*
 	 * The given gateway address may be an interface address.
 	 * For example, issuing a "route change" command on a route


More information about the svn-src-head mailing list