git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3305fa2
)
Use talloc_tos in vfs_full_audit.c:do_log
author
Volker Lendecke
<vl@samba.org>
Mon, 5 Jan 2009 12:33:20 +0000
(13:33 +0100)
committer
Volker Lendecke
<vl@samba.org>
Mon, 5 Jan 2009 12:42:27 +0000
(13:42 +0100)
source3/modules/vfs_full_audit.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_full_audit.c
b/source3/modules/vfs_full_audit.c
index 666dd59574752d76e5ed547bdadc767a58b97160..1d9983a753b4c1132446267e10290d5d91ef741b 100644
(file)
--- 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);