summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-05 13:33:20 +0100
committerVolker Lendecke <vl@samba.org>2009-01-05 13:42:27 +0100
commit21b7b000fb53ac3025d0038cc551a47f9d4a743b (patch)
tree5afead27a675c0ba1479b0be2198ee5ccb74215b
parent3305fa27987d250fe963ae24672dbd8a5b746b7d (diff)
downloadsamba-21b7b000fb53ac3025d0038cc551a47f9d4a743b.tar.gz
samba-21b7b000fb53ac3025d0038cc551a47f9d4a743b.tar.bz2
samba-21b7b000fb53ac3025d0038cc551a47f9d4a743b.zip
Use talloc_tos in vfs_full_audit.c:do_log
-rw-r--r--source3/modules/vfs_full_audit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c
index 666dd59574..1d9983a753 100644
--- a/source3/modules/vfs_full_audit.c
+++ b/source3/modules/vfs_full_audit.c
@@ -852,14 +852,14 @@ static void do_log(vfs_op_type op, bool success, vfs_handle_struct *handle,
fstr_sprintf(err_msg, "fail (%s)", strerror(errno));
va_start(ap, format);
- op_msg = talloc_vasprintf(NULL, format, ap);
+ op_msg = talloc_vasprintf(talloc_tos(), format, ap);
va_end(ap);
if (!op_msg) {
return;
}
- audit_pre = audit_prefix(NULL, handle->conn);
+ audit_pre = audit_prefix(talloc_tos(), handle->conn);
syslog(audit_syslog_priority(handle), "%s|%s|%s|%s\n",
audit_pre ? audit_pre : "",
audit_opname(op), err_msg, op_msg);