summaryrefslogtreecommitdiff
path: root/libports
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-23 15:30:42 +0100
committerJustus Winter <4winter@informatik.uni-hamburg.de>2013-11-28 13:13:32 +0100
commitc62b1edd42d9522d6277d5ca648f2e4a4214341c (patch)
treed461f661c2438147024d5d966dd89aabbe7bf3d1 /libports
parent4353f92301cd903a00831a8272d149c45bbb5b8c (diff)
libports: improve error handling in ports_transfer_right
* libports/transfer-right.c (ports_transfer_right): Improve error handling.
Diffstat (limited to 'libports')
-rw-r--r--libports/transfer-right.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libports/transfer-right.c b/libports/transfer-right.c
index e313f71f..72488a99 100644
--- a/libports/transfer-right.c
+++ b/libports/transfer-right.c
@@ -77,7 +77,8 @@ ports_transfer_right (void *tostruct,
if (port)
{
- hurd_ihash_add (&topi->bucket->htable, port, topi);
+ err = hurd_ihash_add (&topi->bucket->htable, port, topi);
+ assert_perror (err);
if (topi->bucket != frompi->bucket)
{
err = mach_port_move_member (mach_task_self (), port,