return(retval);
if (retval = krb5_random_key(&eblock, random_state, &subkey)) {
- (void) krb5_finish_random_key(&eblock, random_state);
+ (void) krb5_finish_random_key(&eblock, &random_state);
return retval;
}
/* ignore the error if any, since we've already gotten the key out */
return(retval);
*subkey = (krb5_keyblock *)malloc(sizeof(**subkey));
if (!*subkey) {
- (void) krb5_finish_random_key(&eblock, random_state);
+ (void) krb5_finish_random_key(&eblock, &random_state);
return ENOMEM;
}
if (retval = krb5_random_key(&eblock, random_state, subkey)) {
- (void) krb5_finish_random_key(&eblock, random_state);
+ (void) krb5_finish_random_key(&eblock, &random_state);
xfree(*subkey);
return retval;
}