Files
heimdal/kadmin
Jeffrey Altman 124b8d0f78 kadmin: kadmind_dispatch do not write NULL 'rsp' to 'out'
1b213c1082 ("kadmind: Add missing
error checks") altered the behavior of kadmin_dispatch() such that
it unconditionally called

      krb5_storage_to_data(rsp, out);

This change was unsafe because krb5_unparse_name_fixed() failure
would skip the allocation of the 'rsp' and 'sp' krb5_storage
objects.

This change allocates the krb5_storage objects prior to performing
any work.  If either of them fail, kadmin_dispatch() immediately
returns ENOMEM.

Change-Id: I14fd96afe029a4e74bb769605286ca0e17d25043
2022-01-21 09:16:35 -05:00
..
2022-01-14 14:59:02 -06:00
2022-01-21 00:44:10 -05:00
2008-09-13 08:53:55 +00:00
2022-01-21 00:31:56 -05:00
2022-01-14 14:59:02 -06:00
2022-01-14 14:59:02 -06:00
2022-01-14 17:59:49 -06:00
2021-10-11 13:58:15 -05:00
2022-01-02 21:40:17 +11:00
2019-10-03 13:09:18 -05:00
2022-01-14 14:59:02 -06:00
2022-01-15 18:54:57 +11:00
2022-01-14 14:59:02 -06:00
2010-03-16 12:52:58 -07:00
2017-04-29 13:55:24 -04:00
2010-03-16 12:52:58 -07:00
2022-01-16 00:23:05 -05:00
2022-01-14 14:59:02 -06:00
2010-03-16 12:52:58 -07:00