summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-11-11 17:04:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:15:46 -0500
commitdc9cdf37e9e2d33d46f0f6da34a3df372eede982 (patch)
tree347be8b43b27055436bda2910461239a409cabe9
parent36a7bf738afd466e378fb2f09d1ce0b47ec924a4 (diff)
downloadsamba-dc9cdf37e9e2d33d46f0f6da34a3df372eede982.tar.gz
samba-dc9cdf37e9e2d33d46f0f6da34a3df372eede982.tar.xz
samba-dc9cdf37e9e2d33d46f0f6da34a3df372eede982.zip
r19667: Fix incorrect null check
-rw-r--r--source/nsswitch/winbindd_wins.c2
1 files changed, 1 insertions, 1 deletions
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 );