summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-23 15:27:31 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-28 13:13:32 +0100
commit4353f92301cd903a00831a8272d149c45bbb5b8c (patch)
tree5158d7e0e06bb85d10805cf28debf8899fe2fa22 /libports
parent76a94131bf8823b3ad0192878ecef6b6ef2da004 (diff)
libports: improve error handling in ports_reallocate_from_external
* libports/reallocate-from-external.c (ports_reallocate_from_external): Improve error handling.
Diffstat (limited to 'libports')
-rw-r--r--libports/reallocate-from-external.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libports/reallocate-from-external.c b/libports/reallocate-from-external.c
index cd12143c..8cccb2a7 100644
--- a/libports/reallocate-from-external.c
+++ b/libports/reallocate-from-external.c
@@ -60,7 +60,8 @@ ports_reallocate_from_external (void *portstruct, mach_port_t receive)
pi->cancel_threshold = 0;
pi->mscount = stat.mps_mscount;
- hurd_ihash_add (&pi->bucket->htable, receive, pi);
+ err = hurd_ihash_add (&pi->bucket->htable, receive, pi);
+ assert_perror (err);
pthread_mutex_unlock (&_ports_lock);
mach_port_move_member (mach_task_self (), receive, pi->bucket->portset);