]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix kdb5_util ark with no -e option 1427/head
authorGreg Hudson <ghudson@mit.edu>
Fri, 18 Apr 2025 06:59:33 +0000 (02:59 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 25 Apr 2025 04:39:40 +0000 (00:39 -0400)
commitedbd493a3ea5fcba195f65e142509a3cd1d73e83
tree938ddb999e692cccba77261855904dab327dffde
parent2c046a61163a9e969e16fc8644883f8f1d400561
Fix kdb5_util ark with no -e option

Avoid passing NULL to krb5_string_to_keysalt() in add_random_key().
When add_random_key() was first written, krb5_string_to_keysalts() did
nothing on a null string input.  After commit
3576bd662be9b7cc2cca97065fe467e745542b69 it calls strdup(NULL) and
crashes.
src/kadmin/dbutil/kdb5_util.c