Misc fixes (coverity)
This commit is contained in:
@@ -463,7 +463,7 @@ ret_principal_ent(krb5_context contextp,
|
||||
ent->max_life = flag;
|
||||
CHECK(krb5_ret_uint32(sp, &flag));
|
||||
if (flag == 0)
|
||||
ret_principal_xdr(contextp, sp, &ent->mod_name);
|
||||
CHECK(ret_principal_xdr(contextp, sp, &ent->mod_name));
|
||||
CHECK(krb5_ret_uint32(sp, &flag));
|
||||
ent->mod_date = flag;
|
||||
CHECK(krb5_ret_uint32(sp, &flag));
|
||||
|
@@ -514,7 +514,8 @@ kadmind_dispatch(void *kadm_handlep, krb5_boolean initial,
|
||||
int i;
|
||||
krb5_store_int32(sp, n_keys);
|
||||
for(i = 0; i < n_keys; i++){
|
||||
krb5_store_keyblock(sp, new_keys[i]);
|
||||
if (ret == 0)
|
||||
ret = krb5_store_keyblock(sp, new_keys[i]);
|
||||
krb5_free_keyblock_contents(contextp->context, &new_keys[i]);
|
||||
}
|
||||
free(new_keys);
|
||||
|
Reference in New Issue
Block a user