krb5 commit: Fix kdb5_util ark with no -e option
[email protected] Fri, 25 Apr 2025 01:07:31 -0400 (EDT)
| Newsgroups | gmane.comp.encryption.kerberos.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://github.com/krb5/krb5/commit/edbd493a3ea5fcba195f65e142509a3cd1d73e83 commit edbd493a3ea5fcba195f65e142509a3cd1d73e83 Author: Greg Hudson <[email protected]> Date: Fri Apr 18 02:59:33 2025 -0400 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kadmin/dbutil/kdb5_util.c b/src/kadmin/dbutil/kdb5_util.c index 88218dba7..96b4a2571 100644 --- a/src/kadmin/dbutil/kdb5_util.c +++ b/src/kadmin/dbutil/kdb5_util.c @@ -522,7 +522,7 @@ add_random_key(int argc, char **argv) int free_keysalts; char *me = progname; - char *ks_str = NULL; + char *ks_str = ""; char *pr_str; krb5_keyblock *tmp_mkey;