1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

r17874: Fix possible null deref found by Stanford checker.

Jeremy.
(This used to be commit 2894310cc8)
This commit is contained in:
Jeremy Allison 2006-08-28 05:10:56 +00:00 committed by Gerald (Jerry) Carter
parent 981588d579
commit 41d1f322f8

View File

@ -178,14 +178,14 @@ BOOL namecache_fetch(const char *name, int name_type, struct ip_service **ip_lis
char *key, *value;
time_t timeout;
*num_names = 0;
/* exit now if null pointers were passed as they're required further */
if (!ip_list || !num_names) return False;
if (!gencache_init())
return False;
*num_names = 0;
/*
* Use gencache interface - lookup the key
*/