diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-11-11 17:04:08 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:15:46 -0500 |
commit | 5f3a692748e5927d195e02844e6cbb31540da965 (patch) | |
tree | 67d8f4864072bb3938442e71f9be1a19f41a5534 /source3/nsswitch | |
parent | dd8f8c01b7ba425da7db008c33a3cff9325b65d8 (diff) | |
download | samba-5f3a692748e5927d195e02844e6cbb31540da965.tar.gz samba-5f3a692748e5927d195e02844e6cbb31540da965.tar.bz2 samba-5f3a692748e5927d195e02844e6cbb31540da965.zip |
r19667: Fix incorrect null check
(This used to be commit dc9cdf37e9e2d33d46f0f6da34a3df372eede982)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_wins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_wins.c b/source3/nsswitch/winbindd_wins.c index 2cb835b373..844099aabd 100644 --- a/source3/nsswitch/winbindd_wins.c +++ b/source3/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 ); |