From: Volker Lendecke Date: Fri, 9 Nov 2018 20:12:51 +0000 (+0100) Subject: libads: Use dom_sid_str_buf X-Git-Tag: talloc-2.2.0~298 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=258d7d1ca97ffa1780400f463b0d93cb5ecb0f15;p=thirdparty%2Fsamba.git libads: Use dom_sid_str_buf Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 6b5f271272a..ae23245fb14 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -2264,12 +2264,12 @@ static void dump_sid(ADS_STRUCT *ads, const char *field, struct berval **values) int i; for (i=0; values[i]; i++) { struct dom_sid sid; - fstring tmp; + struct dom_sid_buf tmp; if (!sid_parse((const uint8_t *)values[i]->bv_val, values[i]->bv_len, &sid)) { return; } - printf("%s: %s\n", field, sid_to_fstring(tmp, &sid)); + printf("%s: %s\n", field, dom_sid_str_buf(&sid, &tmp)); } }