Files
Linar Galimov ac1c2d05bc krb5: Fix a double free when running into ENOMEM
In cred_delete(), sp is freed after returning from krb5_storage_to_data().
Between this point and the subsequent assignment to sp via krb_storage_emem()
there are two jumps to out, both are executed in an ENOMEM scenario: malloc fail
for cred_data_in_file and krb5_principal_set_realm() fail. In out, sp is freed
again.

This patch fixes the issue by freeing sp right before the krb5_storage_emem()
call.

Signed-off-by: Linar Galimov <galimovlz@sgu.ru>
Signed-off-by: Dmitry Mikhalchenko <tascad@altlinux.org>
2026-06-23 15:34:32 +01:00
..
2024-06-16 23:30:48 -04:00
2022-01-14 17:10:16 -06:00
2011-05-21 11:57:31 -07:00
2021-09-19 13:25:27 +10:00
2023-11-28 21:34:35 -05:00
2022-09-22 22:13:05 -04:00
2018-09-10 14:42:18 -04:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:16 -06:00
2026-05-20 11:43:53 -05:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:17 -06:00
2016-04-16 16:58:08 -05:00
2024-06-16 23:30:48 -04:00
2012-01-10 22:54:50 +01:00
2022-01-14 17:10:16 -06:00
2024-06-16 23:30:48 -04:00
2024-06-16 23:30:48 -04:00
2021-03-26 18:47:49 -05:00
2011-07-24 16:02:22 -07:00
2014-04-25 02:42:17 +02:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2011-05-21 11:57:31 -07:00
2005-10-08 15:39:42 +00:00
2007-07-15 20:49:46 +00:00
2022-01-19 23:38:27 -06:00
2026-01-18 19:06:17 -06:00
2014-03-24 23:07:49 -05:00
2022-01-14 17:10:16 -06:00
2011-05-21 11:57:31 -07:00
2023-06-20 12:19:48 -05:00
2026-01-18 19:06:16 -06:00
2016-11-20 17:43:51 -06:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:16 -06:00
2026-01-18 19:06:16 -06:00
2024-06-16 23:30:48 -04:00
2026-01-18 16:08:40 -06:00
2023-01-04 16:17:09 -06:00
2023-01-04 16:17:09 -06:00
2023-01-04 16:17:09 -06:00
2012-05-28 13:14:55 +01:00
2019-01-02 13:56:04 -05:00
2010-09-18 14:45:33 -07:00
2022-01-19 23:38:27 -06:00
2022-01-18 15:40:54 -06:00
2026-06-10 17:26:54 -05:00
2009-05-04 06:17:40 +00:00
2009-05-04 06:17:40 +00:00
2021-11-29 12:50:26 +11:00
2022-01-14 17:10:16 -06:00
2009-05-04 06:17:40 +00:00
2009-05-04 06:17:40 +00:00
2009-05-04 06:17:40 +00:00
2026-01-18 19:06:16 -06:00
2011-05-21 11:57:31 -07:00
2021-08-09 21:46:24 +10:00
2022-01-14 17:10:16 -06:00