mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
pam_winbind: Fix Bug 15771
Bug: https://bugzilla.samba.org/show_bug.cgi?id=15771 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
e0aab377bd
commit
7e8bfe738a
@ -2527,6 +2527,7 @@ static char* winbind_upn_to_username(struct pwb_context *ctx,
|
|||||||
/* Convert the UPN to a SID */
|
/* Convert the UPN to a SID */
|
||||||
|
|
||||||
wbc_status = wbcCtxLookupName(ctx->wbc_ctx, domain, name, &sid, &type);
|
wbc_status = wbcCtxLookupName(ctx->wbc_ctx, domain, name, &sid, &type);
|
||||||
|
TALLOC_FREE(name);
|
||||||
if (!WBC_ERROR_IS_OK(wbc_status)) {
|
if (!WBC_ERROR_IS_OK(wbc_status)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user