diff options
-rw-r--r-- | src/lib/rpc/bindresvport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rpc/bindresvport.c b/src/lib/rpc/bindresvport.c index ccc4d73..a421dd8 100644 --- a/src/lib/rpc/bindresvport.c +++ b/src/lib/rpc/bindresvport.c @@ -76,7 +76,7 @@ bindresvport_sa(int sd, struct sockaddr *sa) res = -1; errno = EADDRINUSE; for (i = 0; i < NPORTS && res < 0 && errno == EADDRINUSE; i++) { - sa_setport(sa, htons(port++)); + sa_setport(sa, port++); if (port > ENDPORT) { port = STARTPORT; } |