mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
nsswitch:libwbclient: Fix memory leak
Found by Balazs Scheidler <bazsi@balabit.hu>. Reported by Ferenc Wágner <wferi@niif.hu> at https://lists.samba.org/archive/samba-technical/2023-June/138271.html Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
355fd3c7bf
commit
f6babaa9b6
@ -418,6 +418,7 @@ wbcErr wbcCtxAuthenticateUserEx(struct wbcContext *ctx,
|
||||
params->domain_name,
|
||||
sep_response.data.info.winbind_separator,
|
||||
params->account_name);
|
||||
winbindd_free_response(&sep_response);
|
||||
} else {
|
||||
strncpy(request.data.auth.user,
|
||||
params->account_name,
|
||||
|
Loading…
Reference in New Issue
Block a user