From 41d1f322f856c3e10d03c65a21c12e108338df8a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Aug 2006 05:10:56 +0000 Subject: [PATCH] r17874: Fix possible null deref found by Stanford checker. Jeremy. (This used to be commit 2894310cc8cddaec2a67f1af0ab62cc559283e77) --- source3/libsmb/namecache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c index e3e7ac4e3c2..ec8a1900d87 100644 --- a/source3/libsmb/namecache.c +++ b/source3/libsmb/namecache.c @@ -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 */