svn commit: samba r16312 - in trunk/source/smbd: .
jra at samba.org
jra at samba.org
Fri Jun 16 22:40:10 GMT 2006
Author: jra
Date: 2006-06-16 22:40:09 +0000 (Fri, 16 Jun 2006)
New Revision: 16312
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16312
Log:
Check for NULL return. Klocwork #998.
Jeremy.
Modified:
trunk/source/smbd/nttrans.c
Changeset:
Modified: trunk/source/smbd/nttrans.c
===================================================================
--- trunk/source/smbd/nttrans.c 2006-06-16 22:40:07 UTC (rev 16311)
+++ trunk/source/smbd/nttrans.c 2006-06-16 22:40:09 UTC (rev 16312)
@@ -1068,6 +1068,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