1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/nsswitch
Andreas Schneider 36fb8a3d65 nsswitch:krb5_plugin: Avoid a possible double free
Found by Covscan.

"Error: USE_AFTER_FREE (CWE-416):
samba-4.20.0rc2/nsswitch/krb5_plugin/winbind_krb5_localauth.c:122: freed_arg: ""wbcFreeMemory"" frees ""pwd"".
samba-4.20.0rc2/nsswitch/krb5_plugin/winbind_krb5_localauth.c:144: pass_freed_arg: Passing freed pointer ""pwd"" as an argument to ""wbcFreeMemory"".
  142|   		break;
  143|   	}
  144|-> 	wbcFreeMemory(pwd);
  145|   	if (code != 0) {
  146|   		goto out;"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
2024-06-24 06:14:35 +00:00
..
krb5_plugin nsswitch:krb5_plugin: Avoid a possible double free 2024-06-24 06:14:35 +00:00
libwbclient wbclient: Fix a typo 2024-06-04 07:11:35 +00:00
tests tests: Add a test for "all_groups=no" to test_idmap_ad.sh 2024-04-02 13:25:39 +00:00
b15464-testcase.c nsswitch: add test for pthread_key_delete missuse (bug 15464) 2023-09-14 17:56:30 +00:00
nsstest.c
nsstest.h
pam_winbind.c
pam_winbind.h
stress-nss-libwbclient.c
wb_common.c nsswitch/wb_common.c: fix socket fd and memory leaks of global state 2023-09-14 18:53:07 +00:00
wb_reqtrans.c
wb_reqtrans.h
wbinfo.c
winbind_client.h
winbind_nss_aix.c nsswitch: Fix code spelling 2023-06-23 13:44:31 +00:00
winbind_nss_config.h
winbind_nss_freebsd.c
winbind_nss_hpux.h
winbind_nss_linux.c nsswitch: Fix code spelling 2023-06-23 13:44:31 +00:00
winbind_nss_linux.h
winbind_nss_netbsd.c winbind_nss_netbsd: fix missing semicolon 2023-12-29 12:49:34 +00:00
winbind_nss_netbsd.h
winbind_nss_solaris.c nsswitch: Fix code spelling 2023-06-23 13:44:31 +00:00
winbind_nss_solaris.h
winbind_nss.h
winbind_struct_protocol.h
wins_freebsd.c
wins.c
wscript_build buildtools: Remove useless ‘keep_underscore’ parameter 2023-12-11 01:08:37 +00:00
wscript_configure