1
0
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:
Joseph Sutton 2023-07-19 12:55:15 +12:00 committed by Andrew Bartlett
parent 355fd3c7bf
commit f6babaa9b6

View File

@ -418,6 +418,7 @@ wbcErr wbcCtxAuthenticateUserEx(struct wbcContext *ctx,
params->domain_name, params->domain_name,
sep_response.data.info.winbind_separator, sep_response.data.info.winbind_separator,
params->account_name); params->account_name);
winbindd_free_response(&sep_response);
} else { } else {
strncpy(request.data.auth.user, strncpy(request.data.auth.user,
params->account_name, params->account_name,