From 7917a26fabb7835017a6c3a2780c8425a4a92ffa Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 27 Aug 2006 10:08:18 +0000 Subject: r17848: Ok, this did not do it. Still got the same problem. (This used to be commit bb393603707ada3d4b917f8374b7738f16c78f46) --- source4/libcli/security/dom_sid.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source4/libcli') diff --git a/source4/libcli/security/dom_sid.c b/source4/libcli/security/dom_sid.c index 90421104a7..54242eb515 100644 --- a/source4/libcli/security/dom_sid.c +++ b/source4/libcli/security/dom_sid.c @@ -285,14 +285,7 @@ char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid) (unsigned int)sid->sid_rev_num, (unsigned long)ia); for (i = 0; i < sid->num_auths; i++) { - char *tmp = talloc_asprintf(mem_ctx, "%lu", - (unsigned long)sid->sub_auths[i]); - if (tmp == NULL) { - talloc_free(ret); - return NULL; - } - ofs += snprintf(ret + ofs, maxlen - ofs, "-%s", tmp); - talloc_free(tmp); + ofs += snprintf(ret + ofs, maxlen - ofs, "-%lu", (unsigned long)sid->sub_auths[i]); } return ret; -- cgit