From: Volker Lendecke Date: Mon, 5 Jan 2009 12:33:20 +0000 (+0100) Subject: Use talloc_tos in vfs_full_audit.c:do_log X-Git-Tag: samba-4.0.0alpha6~281^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=21b7b000fb53ac3025d0038cc551a47f9d4a743b;p=thirdparty%2Fsamba.git Use talloc_tos in vfs_full_audit.c:do_log --- diff --git a/source3/modules/vfs_full_audit.c b/source3/modules/vfs_full_audit.c index 666dd595747..1d9983a753b 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);