svn commit: samba r16311 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Fri Jun 16 22:40:09 GMT 2006


Author: jra
Date: 2006-06-16 22:40:07 +0000 (Fri, 16 Jun 2006)
New Revision: 16311

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

Log:
Check for NULL return. Klocwork #998.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/nttrans.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/nttrans.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/nttrans.c	2006-06-16 22:36:14 UTC (rev 16310)
+++ branches/SAMBA_3_0/source/smbd/nttrans.c	2006-06-16 22:40:07 UTC (rev 16311)
@@ -1063,6 +1063,10 @@
 		struct ea_list *tmp;
 		struct ea_list *eal = read_ea_list_entry(ctx, pdata + offset + 4, data_size - offset - 4, NULL);
 
+		if (!eal) {
+			return NULL;
+		}
+
 		DLIST_ADD_END(ea_list_head, eal, tmp);
 		if (next_offset == 0) {
 			break;



More information about the samba-cvs mailing list