winbindd: 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, 2 Nov 2018 20:21:15 +0000 (21:21 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/wb_lookupusergroups.c

index 7647fbd5e66c9c004ae97dd963d8de7297260d51..bc14c33a88d1317193decc84420ddc4669db6684 100644 (file)
@@ -57,9 +57,9 @@ struct tevent_req *wb_lookupusergroups_send(TALLOC_CTX *mem_ctx,
 
        domain = find_domain_from_sid_noinit(&state->sid);
        if (domain == NULL) {
-               char buf[DOM_SID_STR_BUFLEN];
-               dom_sid_string_buf(&state->sid, buf, sizeof(buf));
-               DEBUG(1,("could not find domain entry for sid %s\n", buf));
+               struct dom_sid_buf buf;
+               DBG_WARNING("could not find domain entry for sid %s\n",
+                           dom_sid_str_buf(&state->sid, &buf));
                tevent_req_nterror(req, NT_STATUS_NO_SUCH_DOMAIN);
                return tevent_req_post(req, ev);
        }