summaryrefslogtreecommitdiff
path: root/lib/audit_logging
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-10-26 08:25:14 +0200
committerJeremy Allison <jra@samba.org>2018-11-02 21:21:16 +0100
commit74c7e3d19a590c64e0bedbb3756f23c8d6f6369e (patch)
treefd2497cbca3f93624827ef392e6e5198dc7c103e /lib/audit_logging
parent7963e409cc231922f90f57477c2414674c917bdc (diff)
downloadsamba-74c7e3d19a590c64e0bedbb3756f23c8d6f6369e.tar.gz
audit_logging: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/audit_logging')
-rw-r--r--lib/audit_logging/audit_logging.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/audit_logging/audit_logging.c b/lib/audit_logging/audit_logging.c
index c274e971925..acccb9f7ab9 100644
--- a/lib/audit_logging/audit_logging.c
+++ b/lib/audit_logging/audit_logging.c
@@ -826,14 +826,14 @@ int json_add_sid(struct json_object *object,
return ret;
}
} else {
- char sid_buf[DOM_SID_STR_BUFLEN];
+ struct dom_sid_buf sid_buf;
- dom_sid_string_buf(sid, sid_buf, sizeof(sid_buf));
- ret = json_add_string(object, name, sid_buf);
+ ret = json_add_string(
+ object, name, dom_sid_str_buf(sid, &sid_buf));
if (ret != 0) {
DBG_ERR("Unable to add SID [%s] value [%s]\n",
name,
- sid_buf);
+ sid_buf.buf);
return ret;
}
}