From eddf249ee8ecd795f60923f8c2e483211fa9dd77 Mon Sep 17 00:00:00 2001 From: John Carr Date: Sun, 23 Feb 1992 12:11:44 +0000 Subject: [PATCH] Fix arg to krb5_finish_random_key() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2220 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/gen_seqnum.c | 2 +- src/lib/krb5/krb/gen_subkey.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.26.2