From: John Carr Date: Sun, 23 Feb 1992 12:11:44 +0000 (+0000) Subject: Fix arg to krb5_finish_random_key() X-Git-Tag: krb5-1.0-beta2~242 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eddf249ee8ecd795f60923f8c2e483211fa9dd77;p=krb5.git Fix arg to krb5_finish_random_key() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2220 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/gen_seqnum.c b/src/lib/krb5/krb/gen_seqnum.c index 8905042eb..2e61e41ad 100644 --- a/src/lib/krb5/krb/gen_seqnum.c +++ b/src/lib/krb5/krb/gen_seqnum.c @@ -66,7 +66,7 @@ krb5_int32 *seqno; 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 */ diff --git a/src/lib/krb5/krb/gen_subkey.c b/src/lib/krb5/krb/gen_subkey.c index 6fba75be0..25299aff8 100644 --- a/src/lib/krb5/krb/gen_subkey.c +++ b/src/lib/krb5/krb/gen_subkey.c @@ -51,12 +51,12 @@ krb5_keyblock **subkey; 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; }