winbind: Use dom_sid_str_buf
authorVolker Lendecke <vl@samba.org>
Fri, 26 Oct 2018 06:25:14 +0000 (08:25 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 9 Nov 2018 21:42:28 +0000 (22:42 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_cache.c

index 2e2a04d09d8ec8542d46906abb097e241edb8333..c23ae62c403e17b151ec6e15dd4d577963f4f18d 100644 (file)
@@ -854,8 +854,8 @@ static void centry_put_hash16(struct cache_entry *centry, const uint8_t val[16])
 
 static void centry_put_sid(struct cache_entry *centry, const struct dom_sid *sid)
 {
-       fstring sid_string;
-       centry_put_string(centry, sid_to_fstring(sid_string, sid));
+       struct dom_sid_buf sid_string;
+       centry_put_string(centry, dom_sid_str_buf(sid, &sid_string));
 }