libndr: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Fri, 21 Dec 2018 08:32:41 +0000 (09:32 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 8 Jan 2019 02:40:27 +0000 (03:40 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
librpc/ndr/ndr_sec_helper.c

index ecc0511..5a2ed16 100644 (file)
@@ -147,7 +147,8 @@ size_t ndr_size_dom_sid0(const struct dom_sid *sid, int flags)
 */
 void ndr_print_dom_sid(struct ndr_print *ndr, const char *name, const struct dom_sid *sid)
 {
-       ndr->print(ndr, "%-25s: %s", name, dom_sid_string(ndr, sid));
+       struct dom_sid_buf buf;
+       ndr->print(ndr, "%-25s: %s", name, dom_sid_str_buf(sid, &buf));
 }
 
 void ndr_print_dom_sid2(struct ndr_print *ndr, const char *name, const struct dom_sid *sid)