summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pfinet/misc.c b/pfinet/misc.c
index 74772a68..9b9086e0 100644
--- a/pfinet/misc.c
+++ b/pfinet/misc.c
@@ -57,9 +57,10 @@ make_sockaddr_port (struct socket *sock,
if (err)
return err;
- addrstruct = ports_allocate_port (pfinet_bucket,
- sizeof (struct sock_addr) + buflen,
- addrport_class);
+ err = ports_create_port (addrport_class, pfinet_bucket,
+ sizeof (struct sock_addr) + buflen, &addrstruct);
+ if (err)
+ return err;
addrstruct->len = buflen;
bcopy (buf, addrstruct->address, buflen);
*addr = ports_get_right (addrstruct);