summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/portmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portmap.c b/src/portmap.c
index ea2a05f..12bd34d 100644
--- a/src/portmap.c
+++ b/src/portmap.c
@@ -89,6 +89,10 @@ main(int argc, char **argv)
printf("bound to reserved port %d\n", port);
}
s = portmap_create_client_socket("portmap", port);
+ if (s == -1) {
+ printf("error creating portmap/rpcbind client socket\n");
+ return 1;
+ }
setregid(2516, 2516);
setreuid(2510, 2510);
portmap_unregister("portmap", s, YPPROG, YPVERS, AF_INET, IPPROTO_TCP,