svn commit: samba r14333 - in branches/SAMBA_3_0/source/modules: .
jra at samba.org
jra at samba.org
Mon Mar 13 18:42:58 GMT 2006
Author: jra
Date: 2006-03-13 18:42:57 +0000 (Mon, 13 Mar 2006)
New Revision: 14333
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14333
Log:
Fix coverity #77, ensure we can't exit after allocation.
Jeremy.
Modified:
branches/SAMBA_3_0/source/modules/vfs_full_audit.c
Changeset:
Modified: branches/SAMBA_3_0/source/modules/vfs_full_audit.c
===================================================================
--- branches/SAMBA_3_0/source/modules/vfs_full_audit.c 2006-03-13 18:31:42 UTC (rev 14332)
+++ branches/SAMBA_3_0/source/modules/vfs_full_audit.c 2006-03-13 18:42:57 UTC (rev 14333)
@@ -816,6 +816,10 @@
const char *none[] = { NULL };
const char *all [] = { "all" };
+ if (!handle) {
+ return -1;
+ }
+
pd = SMB_MALLOC_P(struct vfs_full_audit_private_data);
if (!pd) {
return -1;
More information about the samba-cvs
mailing list