mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
r19667: Fix incorrect null check
This commit is contained in:
parent
36a7bf738a
commit
dc9cdf37e9
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user