From dfa4760eeaecb3666c149d9bcdf6f36c18c6f463 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 19 Jun 2006 19:41:56 +0000 Subject: r16361: Fix Klocwork ID 1731 1770 1771 1775 1796 Volker (This used to be commit 8a5cebc19e4709399976efe9e3ba3bf29249620a) --- source3/nsswitch/winbindd_cm.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/nsswitch/winbindd_cm.c') diff --git a/source3/nsswitch/winbindd_cm.c b/source3/nsswitch/winbindd_cm.c index b24ed842de..ea4d8503c1 100644 --- a/source3/nsswitch/winbindd_cm.c +++ b/source3/nsswitch/winbindd_cm.c @@ -723,6 +723,9 @@ static BOOL find_new_dc(TALLOC_CTX *mem_ctx, if ((num_dcnames == 0) || (num_dcnames != num_addrs)) return False; + if ((addrs == NULL) || (dcnames == NULL)) + return False; + if ( !open_any_socket_out(addrs, num_addrs, 10000, &fd_index, fd) ) { for (i=0; i