summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-23 17:50:55 +0100
committerVolker Lendecke <vl@samba.org>2008-03-23 18:28:23 +0100
commit20caa9bbe64e231c37f11e6781def3410338a7f2 (patch)
tree73b6aa475728087837f5411e3e4225cd31dff698 /source3/modules
parent9c45d491400bbefd7ad78b0d472c127ecbd0076d (diff)
downloadsamba-20caa9bbe64e231c37f11e6781def3410338a7f2.tar.gz
samba-20caa9bbe64e231c37f11e6781def3410338a7f2.tar.bz2
samba-20caa9bbe64e231c37f11e6781def3410338a7f2.zip
Fix Coverity ID 450
(This used to be commit 700cceb6940c95997cfef374cffd50729a35528a)
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_full_audit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index 6a8861361c..19218cc47d 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -679,7 +679,11 @@ static int audit_syslog_priority(vfs_handle_struct *handle)
int priority;
- priority = lp_parm_enum(SNUM(handle->conn), "full_audit", "priority", enum_log_priorities, LOG_NOTICE);
+ priority = lp_parm_enum(SNUM(handle->conn), "full_audit", "priority",
+ enum_log_priorities, LOG_NOTICE);
+ if (priority == -1) {
+ priority = LOG_WARNING;
+ }
return priority;
}