diff options
author | Jason Downs <downsj@cvs.openbsd.org> | 1996-07-29 07:54:59 +0000 |
---|---|---|
committer | Jason Downs <downsj@cvs.openbsd.org> | 1996-07-29 07:54:59 +0000 |
commit | b832a6c86cbe9a0d7b3920c03bb66eb3634da155 (patch) | |
tree | 960f4f14b76639929a5cae3dda31551f9bf23c17 | |
parent | 1b7862cfb176587a778a87b1e8e05a42d2e8a9b3 (diff) |
Fix stupid logic error in bind().
-rw-r--r-- | sys/netinet/in_pcb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 52f5e488258..1168f7bbc36 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: in_pcb.c,v 1.7 1996/07/29 05:03:33 downsj Exp $ */ +/* $OpenBSD: in_pcb.c,v 1.8 1996/07/29 07:54:58 downsj Exp $ */ /* $NetBSD: in_pcb.c,v 1.25 1996/02/13 23:41:53 christos Exp $ */ /* @@ -218,8 +218,8 @@ portloop: * counting down */ if (loopcount == 0) { /* only do this once. */ - old = last; - last += (random() % (first - last)); + old = first; + first -= (random() % (first - last)); } count = first - last; @@ -245,7 +245,6 @@ portloop: */ if (loopcount == 0) { /* only do this once. */ old = first; - first += (random() % (last - first)); } count = last - first; |