summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/in_pcb.c4
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;