Skip to content

Commit

Permalink
nsswitch:libwbclient: Fix memory leak
Browse files Browse the repository at this point in the history
Found by Balazs Scheidler <[email protected]>.

Reported by Ferenc Wágner <[email protected]> at
https://lists.samba.org/archive/samba-technical/2023-June/138271.html

Signed-off-by: Joseph Sutton <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
jsutton24 authored and abartlet committed Aug 8, 2023
1 parent 355fd3c commit f6babaa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nsswitch/libwbclient/wbc_pam.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f6babaa

Please sign in to comment.