Fix arg to krb5_finish_random_key()
authorJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:11:44 +0000 (12:11 +0000)
committerJohn Carr <jfc@mit.edu>
Sun, 23 Feb 1992 12:11:44 +0000 (12:11 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2220 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/gen_seqnum.c
src/lib/krb5/krb/gen_subkey.c

index 8905042ebf3e0f935b533910535a710104d75dce..2e61e41ad9b1d61ca11f32ce90565c6e9c2ee4c8 100644 (file)
@@ -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 */
index 6fba75be0940c0eb23caafe16666117c107f2fe7..25299aff84681ed01b5f7cce7630db71fd07c16c 100644 (file)
@@ -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;
     }