]> git.ipfire.org Git - thirdparty/krb5.git/commit
Check strdup return in kadm5_get_config_params() 832/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 28 Aug 2018 01:10:53 +0000 (21:10 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 28 Aug 2018 18:23:51 +0000 (14:23 -0400)
commitc0af219be218c02e72160ecd0521bc5b9bad546f
treeb6fbc50eba904a57b5a9b6441e8a92fa6b0368c8
parent405dd1f1b56b39c2e7576df554a819ae5ab0076f
Check strdup return in kadm5_get_config_params()

When copying the realm string, if strdup() returns NULL, fail out with
ENOMEM instead of pretending the realm wasn't specified.  When copying
KRB5_DEFAULT_SUPPORTED_ENCTYPES, if strdup() returns NULL, fail out
with ENOMEM instead of crashing.  Reported by Bean Zhang.

ticket: 8727
tags: pullup
target_version: 1.16-next
target_version: 1.15-next
src/lib/kadm5/alt_prof.c