From 53019f5a166e524157876ee1a19b88dfab807def Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 13 Mar 2006 18:42:57 +0000 Subject: r14333: Fix coverity #77, ensure we can't exit after allocation. Jeremy. (This used to be commit 15d78ab1fc83249552476d99144389cfe42a786f) --- source3/modules/vfs_full_audit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3') 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; -- cgit