diff --git a/sys/src/ape/lib/bsd/bind.c b/sys/src/ape/lib/bsd/bind.c index f48ecf69f..aa4762c0b 100644 --- a/sys/src/ape/lib/bsd/bind.c +++ b/sys/src/ape/lib/bsd/bind.c @@ -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;