summaryrefslogtreecommitdiffstats
path: root/source3/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
commit8f84d170af0cdf55d02558cc51ac77c344990ac6 (patch)
tree1d23f5fc428d6475b0c102d0e15c6d42e3ac72e1 /source3/nsswitch/winbindd.c
parentf634f24cf8466b12b54e2b6b7d52adba174603dc (diff)
downloadsamba-8f84d170af0cdf55d02558cc51ac77c344990ac6.tar.gz
samba-8f84d170af0cdf55d02558cc51ac77c344990ac6.tar.xz
samba-8f84d170af0cdf55d02558cc51ac77c344990ac6.zip
Remove extra headers, and ensure that we correctly bail out of winbindd if we
can't create the socket. Andrew Bartlett (This used to be commit 13b9af53bff8e42126a38f93c3bdd5b4d9b20aba)
Diffstat (limited to 'source3/nsswitch/winbindd.c')
-rw-r--r--source3/nsswitch/winbindd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 57c1fc84b5..b4d1773e9c 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/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);