diff options
author | Jeremy Allison <jra@samba.org> | 2006-08-28 05:10:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:56 -0500 |
commit | 41d1f322f856c3e10d03c65a21c12e108338df8a (patch) | |
tree | 35bcac8ff2dfcd194783d24c0620b0ced18f019e /source3 | |
parent | 981588d57905674b1b13dc9830abf3e318d19ab3 (diff) | |
download | samba-41d1f322f856c3e10d03c65a21c12e108338df8a.tar.gz samba-41d1f322f856c3e10d03c65a21c12e108338df8a.tar.bz2 samba-41d1f322f856c3e10d03c65a21c12e108338df8a.zip |
r17874: Fix possible null deref found by Stanford checker.
Jeremy.
(This used to be commit 2894310cc8cddaec2a67f1af0ab62cc559283e77)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/namecache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/namecache.c b/source3/libsmb/namecache.c index e3e7ac4e3c..ec8a1900d8 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 */ |