1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/nsswitch/krb5_plugin
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
..
async_dns_krb5_locator.c nsswitch: explicitly mark magic krb5 plugin symbols as _PUBLIC_ 2021-11-30 15:53:34 +00:00
winbind_krb5_localauth.c nsswitch:krb5_plugin: Avoid a possible double free 2024-06-24 06:14:35 +00:00
winbind_krb5_locator.c nsswitch: explicitly mark magic krb5 plugin symbols as _PUBLIC_ 2021-11-30 15:53:34 +00:00