ape/bsd/bind.c: Do not pretend that the port could be negative.
Ports are filtered through "htons" which returns an "unsigned short".
This commit is contained in:
parent
25a0d57478
commit
2ca5abbc2b
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ bind(int fd, void *a, int alen)
|
|||
|
||||
close(cfd);
|
||||
|
||||
if(_sock_inport(&r->addr) <= 0)
|
||||
if(_sock_inport(&r->addr) == 0)
|
||||
_sock_ingetaddr(r, &r->addr, 0, "local");
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue