lib/kadm5: kadm5_c_randkey_principal check store_int return

do not ignore failures to krb5_store_int() ks_salttype.

Change-Id: I4144376f24ac00f45073daec4fa5835706b1ad09
This commit is contained in:
Jeffrey Altman
2022-01-23 22:49:57 -05:00
parent d80a1b9556
commit 693191b23d

View File

@@ -93,7 +93,7 @@ kadm5_c_randkey_principal(void *server_handle,
for (i = 0; ret == 0 && i < n_ks_tuple; i++) {
ret = krb5_store_int32(sp, ks_tuple[i].ks_enctype);
if (ret == 0)
krb5_store_int32(sp, ks_tuple[i].ks_salttype);
ret = krb5_store_int32(sp, ks_tuple[i].ks_salttype);
}
/* Future extensions go here */
if (ret)