diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-04-19 22:16:26 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-04-19 22:16:26 +0000 |
commit | 94f05de63943d09787168fee12c4337b5b688329 (patch) | |
tree | 05a8ce01d2a8f923321a94310c82455a41001593 /sys | |
parent | b0f406123d14bf3aa7b87b3119aae4aa64a116a7 (diff) |
Use the correct byte-order when checking against baddynamic ports,
restoring pre-1.190 behaviour. ok millert@ mpi@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/in_pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 5faf89331b5..44d08eaab39 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.205 2016/04/13 06:06:04 vgross Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.206 2016/04/19 22:16:25 sthen Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -473,7 +473,7 @@ in_pcbpickport(u_int16_t *lport, void *laddr, int wild, struct inpcb *inp, if (candidate < lower || candidate > higher) candidate = lower; localport = htons(candidate); - } while (in_baddynamic(localport, so->so_proto->pr_protocol) || + } while (in_baddynamic(candidate, so->so_proto->pr_protocol) || in_pcblookup_local(table, laddr, localport, wild, inp->inp_rtableid)); *lport = localport; |