summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-06 20:16:51 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:10:59 -0500
commit2d3946b8c4bb9ecf151df09775c0a5f23e80bd67 (patch)
tree4557a5f23bdfc9cc524bfb064b0b8160d6124110 /source3/libsmb
parent6d9c2b872f1552b7e1127f0b52f197e599fd9552 (diff)
downloadsamba-2d3946b8c4bb9ecf151df09775c0a5f23e80bd67.tar.gz
samba-2d3946b8c4bb9ecf151df09775c0a5f23e80bd67.tar.bz2
samba-2d3946b8c4bb9ecf151df09775c0a5f23e80bd67.zip
r13893: Fix for Coverity issue CID #164. The first one that I don't
think is a direct bug, but some code that needs clarification :-). Jeremy. (This used to be commit 61901a3f10de64a72b655d9aa884424a4fc88a44)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/namequery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 6449de0e0e..f78c368eb8 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -572,6 +572,8 @@ struct in_addr *name_query(int fd,const char *name,int name_type,
if (!tmp_ip_list) {
DEBUG(0,("name_query: Realloc failed.\n"));
SAFE_FREE(ip_list);
+ free_packet(p2);
+ return( NULL );
}
ip_list = tmp_ip_list;