diff options
Diffstat (limited to 'net/phonet/socket.c')
-rw-r--r-- | net/phonet/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/phonet/socket.c b/net/phonet/socket.c index ab07711..b24bf54 100644 --- a/net/phonet/socket.c +++ b/net/phonet/socket.c @@ -506,7 +506,7 @@ int pn_sock_get_port(struct sock *sk, unsigned short sport) phonet_get_local_port_range(&pmin, &pmax); for (port = pmin; port <= pmax; port++) { - port_cur++; + port_cur += PN_HASHSIZE; if (port_cur < pmin || port_cur > pmax) port_cur = pmin; |