diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-23 15:25:03 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-28 13:13:32 +0100 |
commit | 76a94131bf8823b3ad0192878ecef6b6ef2da004 (patch) | |
tree | db253124010ab62434f3ade19f085f37ae57fd07 | |
parent | 31d394232eb8544154198ec3de7328ab1a6b82a6 (diff) |
libports: improve error handling in ports_reallocate_port
* libports/reallocate-port.c (ports_reallocate_port): Improve error
handling.
-rw-r--r-- | libports/reallocate-port.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libports/reallocate-port.c b/libports/reallocate-port.c index b2977dd3..d2adaebb 100644 --- a/libports/reallocate-port.c +++ b/libports/reallocate-port.c @@ -48,7 +48,8 @@ ports_reallocate_port (void *portstruct) } pi->cancel_threshold = 0; pi->mscount = 0; - hurd_ihash_add (&pi->bucket->htable, pi->port_right, pi); + err = hurd_ihash_add (&pi->bucket->htable, pi->port_right, pi); + assert_perror (err); pthread_mutex_unlock (&_ports_lock); err = mach_port_move_member (mach_task_self (), pi->port_right, |