From b5ad6e8625f13b02df48148f78be0f65e8f01dd0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 11 Nov 2006 17:04:08 +0000 Subject: [PATCH] r19667: Fix incorrect null check --- source/nsswitch/winbindd_wins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/nsswitch/winbindd_wins.c b/source/nsswitch/winbindd_wins.c index 2cb835b3733..844099aabda 100644 --- a/source/nsswitch/winbindd_wins.c +++ b/source/nsswitch/winbindd_wins.c @@ -95,7 +95,7 @@ static struct in_addr *lookup_byname_backend(const char *name, int *count) /* always try with wins first */ if (resolve_wins(name,0x20,&ret,count)) { - if ( count == 0 ) + if ( *count == 0 ) return NULL; if ( (return_ip = SMB_MALLOC_ARRAY(struct in_addr, *count)) == NULL ) { free( ret ); -- 2.11.4.GIT