summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pfinet/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfinet/misc.c b/pfinet/misc.c
index 56611daf..08b19e9b 100644
--- a/pfinet/misc.c
+++ b/pfinet/misc.c
@@ -42,7 +42,7 @@ make_sockaddr_port (struct socket *sock,
err = (*sock->ops->getname) (sock, &buf.sa, &buflen, peer);
if (err)
- return err;
+ return -err;
err = ports_create_port (addrport_class, pfinet_bucket,
(offsetof (struct sock_addr, address)