summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-03-13 18:42:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:25 -0500
commit53019f5a166e524157876ee1a19b88dfab807def (patch)
treea0ddf2ff1a25a8afca1782fd1b2e54fa24ddc5d5
parentcc41fa4ad7e3068eea582961d874748c941220dc (diff)
downloadsamba-53019f5a166e524157876ee1a19b88dfab807def.tar.gz
samba-53019f5a166e524157876ee1a19b88dfab807def.tar.bz2
samba-53019f5a166e524157876ee1a19b88dfab807def.zip
r14333: Fix coverity #77, ensure we can't exit after allocation.
Jeremy. (This used to be commit 15d78ab1fc83249552476d99144389cfe42a786f)
-rw-r--r--source3/modules/vfs_full_audit.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index 52e245a176..0ae48f4818 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -816,6 +816,10 @@ static int smb_full_audit_connect(vfs_handle_struct *handle, connection_struct *
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;