summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-12-01 03:14:30 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-12-01 03:14:30 +0000
commit13b9af53bff8e42126a38f93c3bdd5b4d9b20aba (patch)
treebd0328efa0f3579002dd17c6d7710d48d2867136 /source/nsswitch/winbindd.c
parentea18d02036b4e0502e5ecb057c9fe381709a07d8 (diff)
downloadsamba-13b9af53bff8e42126a38f93c3bdd5b4d9b20aba.tar.gz
samba-13b9af53bff8e42126a38f93c3bdd5b4d9b20aba.tar.xz
samba-13b9af53bff8e42126a38f93c3bdd5b4d9b20aba.zip
Remove extra headers, and ensure that we correctly bail out of winbindd if we
can't create the socket. Andrew Bartlett
Diffstat (limited to 'source/nsswitch/winbindd.c')
-rw-r--r--source/nsswitch/winbindd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/nsswitch/winbindd.c b/source/nsswitch/winbindd.c
index 57c1fc84b57..b4d1773e9ce 100644
--- a/source/nsswitch/winbindd.c
+++ b/source/nsswitch/winbindd.c
@@ -519,6 +519,12 @@ static void process_loop(void)
/* Initialise fd lists for select() */
listen_sock = open_winbindd_socket();
+
+ if (listen_sock == -1) {
+ perror("open_winbind_socket");
+ exit(1);
+ }
+
maxfd = listen_sock;
FD_ZERO(&r_fds);