bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] console-client: Add another missing error check


From: Etienne Brateau
Subject: [PATCH] console-client: Add another missing error check
Date: Tue, 12 Mar 2024 23:08:42 +0100

---
 console-client/trans.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/console-client/trans.c b/console-client/trans.c
index 0c961c2f..b7d56cb0 100644
--- a/console-client/trans.c
+++ b/console-client/trans.c
@@ -892,6 +892,8 @@ console_setup_node (char *path)
     error (1, err, "Cannot map time");
 
   err = ports_create_port (netfs_control_class, netfs_port_bucket, sizeof 
(struct port_info), &newpi);
+  if (err)
+    error (1, err, "Cannot create port");
   right = ports_get_send_right (newpi);
   err = file_set_translator (node, 0, FS_TRANS_EXCL | FS_TRANS_SET, 0, 0, 0,
                             right, MACH_MSG_TYPE_COPY_SEND);
-- 
2.44.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]