diff options
author | julian <julian@FreeBSD.org> | 2008-11-19 19:19:30 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2008-11-19 19:19:30 +0000 |
commit | cf07f793f28ff207220b29f826cd29b383f5d370 (patch) | |
tree | b8bb39aefb08a1999c428adfd19817999a5c171b /sys/kern | |
parent | 531042bdec72ce9856b1a7463ffbe9973a8ffa1e (diff) | |
download | FreeBSD-src-cf07f793f28ff207220b29f826cd29b383f5d370.zip FreeBSD-src-cf07f793f28ff207220b29f826cd29b383f5d370.tar.gz |
Fix a scope problem in the multiple routing table code that stopped the
SO_SETFIB socket option from working correctly.
Obtained from: Ironport
MFC after: 3 days
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index eb587fb..e712503 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -2218,6 +2218,9 @@ sosetopt(struct socket *so, struct sockopt *sopt) if ((so->so_proto->pr_domain->dom_family == PF_INET) || (so->so_proto->pr_domain->dom_family == PF_ROUTE)) { so->so_fibnum = optval; + /* Note: ignore error */ + if (so->so_proto && so->so_proto->pr_ctloutput) + (*so->so_proto->pr_ctloutput)(so, sopt); } else { so->so_fibnum = 0; } |