diff options
author | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:52:18 -0500 |
---|---|---|
committer | Nalin Dahyabhai <nalin@redhat.com> | 2011-01-03 14:52:18 -0500 |
commit | cf770b36c3afe2e84803dac195e8f4d8aab20a3d (patch) | |
tree | f5c04caab5d262c8cb5aab8e6a8ba73f55a9206a /src/portmap.c | |
parent | 17a1ac252f7abdc8dfafc6dbd7ed31ff9e430d16 (diff) | |
download | slapi-nis-cf770b36c3afe2e84803dac195e8f4d8aab20a3d.tar.gz slapi-nis-cf770b36c3afe2e84803dac195e8f4d8aab20a3d.tar.xz slapi-nis-cf770b36c3afe2e84803dac195e8f4d8aab20a3d.zip |
- in main(), return an error exit result if we can't create a socket to
use for talking to the portmapper (defect #10100)
Diffstat (limited to 'src/portmap.c')
-rw-r--r-- | src/portmap.c | 4 |
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, |