diff options
author | melifaro <melifaro@FreeBSD.org> | 2014-04-27 02:20:09 +0000 |
---|---|---|
committer | melifaro <melifaro@FreeBSD.org> | 2014-04-27 02:20:09 +0000 |
commit | f51d6fcb64af0d0363f37794ae952ce42787f86d (patch) | |
tree | fec1cd021f3464aea8abb82f732386baa2d56170 | |
parent | 9f4d9da1e73e937d26faccb729f5946d91b9ed41 (diff) | |
download | FreeBSD-src-f51d6fcb64af0d0363f37794ae952ce42787f86d.zip FreeBSD-src-f51d6fcb64af0d0363f37794ae952ce42787f86d.tar.gz |
Move up fibnum to ensure it is always defined.
Found by: ian
MFC with: r264987
-rw-r--r-- | sys/net/rtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index 9a32969..626dc8f 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -531,6 +531,8 @@ route_output(struct mbuf *m, struct socket *so) 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 socket *so) 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 |