diff options
author | smh <smh@FreeBSD.org> | 2014-05-26 22:54:15 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2014-05-26 22:54:15 +0000 |
commit | 873b20c0ff82983e12fd6594ed634830f455f3ab (patch) | |
tree | e10bdf700d603324de6d65a642970053a8a04fd2 /sys/netinet/in_pcb.c | |
parent | 5f95900ee1af25b2f5313c465d77e2420e9562b6 (diff) | |
download | FreeBSD-src-873b20c0ff82983e12fd6594ed634830f455f3ab.zip FreeBSD-src-873b20c0ff82983e12fd6594ed634830f455f3ab.tar.gz |
MFC r264879
Fix jailed raw sockets not setting the correct source address by
calling in_pcbladdr instead of prison_get_ip4.
Sponsored by: Multiplay
Diffstat (limited to 'sys/netinet/in_pcb.c')
-rw-r--r-- | sys/netinet/in_pcb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index dd2db49..4e75f13 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -694,7 +694,7 @@ in_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct ucred *cred) * Do proper source address selection on an unbound socket in case * of connect. Take jails into account as well. */ -static int +int in_pcbladdr(struct inpcb *inp, struct in_addr *faddr, struct in_addr *laddr, struct ucred *cred) { |