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

jra at samba.org jra at samba.org
Wed Jun 28 05:00:12 GMT 2006


Author: jra
Date: 2006-06-28 05:00:09 +0000 (Wed, 28 Jun 2006)
New Revision: 16616

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

Log:
Klocwork #2025. Stop null deref. I actually don't
think this can happen in real life but the code is
too complicated to be sure....
Jerry please merge this for 3.0.23.
Jeremy.

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


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/posix_acls.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/posix_acls.c	2006-06-28 04:59:58 UTC (rev 16615)
+++ branches/SAMBA_3_0/source/smbd/posix_acls.c	2006-06-28 05:00:09 UTC (rev 16616)
@@ -1483,7 +1483,7 @@
 		 * Only add to the file ACL if not inherit only.
 		 */
 
-		if (!(psa->flags & SEC_ACE_FLAG_INHERIT_ONLY)) {
+		if (current_ace && !(psa->flags & SEC_ACE_FLAG_INHERIT_ONLY)) {
 			DLIST_ADD_END(file_ace, current_ace, tmp_ace);
 
 			/*



More information about the samba-cvs mailing list