From: Volker Lendecke Date: Thu, 10 Jan 2019 20:04:33 +0000 (+0100) Subject: pdbtest: Use dom_sid_str_buf X-Git-Tag: talloc-2.2.0~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8284ed9cc843ad07c9db5d113fef40919ed57ddc;p=thirdparty%2Fsamba.git pdbtest: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/torture/pdbtest.c b/source3/torture/pdbtest.c index 64bc45e6a7c..fdf72187b6c 100644 --- a/source3/torture/pdbtest.c +++ b/source3/torture/pdbtest.c @@ -358,9 +358,11 @@ static bool test_auth(TALLOC_CTX *mem_ctx, struct samu *pdb_entry) } if (!dom_sid_equal(info3_sam->base.domain_sid, info3_auth->base.domain_sid)) { + struct dom_sid_buf buf1, buf2; DEBUG(0, ("domain_sid in SAM info3 %s does not match domain_sid in AUTH info3 %s\n", - dom_sid_string(NULL, info3_sam->base.domain_sid), - dom_sid_string(NULL, info3_auth->base.domain_sid))); + dom_sid_str_buf(info3_sam->base.domain_sid, &buf1), + dom_sid_str_buf(info3_auth->base.domain_sid, + &buf2))); return False; } @@ -429,9 +431,12 @@ static bool test_auth(TALLOC_CTX *mem_ctx, struct samu *pdb_entry) } if (!dom_sid_equal(info3_sam->base.domain_sid, info6_wbc->base.domain_sid)) { + struct dom_sid_buf buf1, buf2; DEBUG(0, ("domain_sid in SAM info3 %s does not match domain_sid in AUTH info3 %s\n", - dom_sid_string(NULL, info3_sam->base.domain_sid), - dom_sid_string(NULL, info6_wbc->base.domain_sid))); + dom_sid_str_buf(info3_sam->base.domain_sid, + &buf1), + dom_sid_str_buf(info6_wbc->base.domain_sid, + &buf2))); return false; } }