svn commit: samba r13893 - in branches/SAMBA_3_0/source/libsmb: .

jra at samba.org jra at samba.org
Mon Mar 6 20:16:51 GMT 2006


Author: jra
Date: 2006-03-06 20:16:51 +0000 (Mon, 06 Mar 2006)
New Revision: 13893

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=13893

Log:
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.

Modified:
   branches/SAMBA_3_0/source/libsmb/namequery.c


Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/namequery.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/namequery.c	2006-03-06 20:05:20 UTC (rev 13892)
+++ branches/SAMBA_3_0/source/libsmb/namequery.c	2006-03-06 20:16:51 UTC (rev 13893)
@@ -572,6 +572,8 @@
 			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;



More information about the samba-cvs mailing list