mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r17874: Fix possible null deref found by Stanford checker.
Jeremy. (This used to be commit 2894310cc8cddaec2a67f1af0ab62cc559283e77)
This commit is contained in:
parent
981588d579
commit
41d1f322f8
@ -178,14 +178,14 @@ BOOL namecache_fetch(const char *name, int name_type, struct ip_service **ip_lis
|
|||||||
char *key, *value;
|
char *key, *value;
|
||||||
time_t timeout;
|
time_t timeout;
|
||||||
|
|
||||||
*num_names = 0;
|
|
||||||
|
|
||||||
/* exit now if null pointers were passed as they're required further */
|
/* exit now if null pointers were passed as they're required further */
|
||||||
if (!ip_list || !num_names) return False;
|
if (!ip_list || !num_names) return False;
|
||||||
|
|
||||||
if (!gencache_init())
|
if (!gencache_init())
|
||||||
return False;
|
return False;
|
||||||
|
|
||||||
|
*num_names = 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Use gencache interface - lookup the key
|
* Use gencache interface - lookup the key
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user