diff options
author | Theodore Tso <tytso@mit.edu> | 1992-09-24 23:27:43 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1992-09-24 23:27:43 +0000 |
commit | 6a5fa46b1ff59dbf601d59f8ac2717f8e5ddc6f0 (patch) | |
tree | efc94c4e88637229c1a4388d178f01a5f6311ea7 /src/lib/krb5/krb/decrypt_tk.c | |
parent | 825b7f6cc96bb0f89d826500b6b6741eb701d1bf (diff) | |
download | krb5-6a5fa46b1ff59dbf601d59f8ac2717f8e5ddc6f0.zip krb5-6a5fa46b1ff59dbf601d59f8ac2717f8e5ddc6f0.tar.gz krb5-6a5fa46b1ff59dbf601d59f8ac2717f8e5ddc6f0.tar.bz2 |
Removed some saber lint flames
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2399 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/decrypt_tk.c')
-rw-r--r-- | src/lib/krb5/krb/decrypt_tk.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/krb5/krb/decrypt_tk.c b/src/lib/krb5/krb/decrypt_tk.c index 287973a..a35f609 100644 --- a/src/lib/krb5/krb/decrypt_tk.c +++ b/src/lib/krb5/krb/decrypt_tk.c @@ -67,28 +67,32 @@ register krb5_ticket *ticket; return(ENOMEM); /* do any necessary key pre-processing */ - if (retval = krb5_process_key(&eblock, srv_key)) { + retval = krb5_process_key(&eblock, srv_key); + if (retval) { free(scratch.data); return(retval); } /* call the encryption routine */ - if (retval = krb5_decrypt((krb5_pointer) ticket->enc_part.ciphertext.data, - (krb5_pointer) scratch.data, - scratch.length, &eblock, 0)) { + retval = krb5_decrypt((krb5_pointer) ticket->enc_part.ciphertext.data, + (krb5_pointer) scratch.data, + scratch.length, &eblock, 0); + if (retval) { (void) krb5_finish_key(&eblock); free(scratch.data); return retval; } #define clean_scratch() {memset(scratch.data, 0, scratch.length); \ free(scratch.data);} - if (retval = krb5_finish_key(&eblock)) { + retval = krb5_finish_key(&eblock); + if (retval) { clean_scratch(); return retval; } /* now decode the decrypted stuff */ - if (!(retval = decode_krb5_enc_tkt_part(&scratch, &dec_tkt_part))) { + retval = decode_krb5_enc_tkt_part(&scratch, &dec_tkt_part); + if (!retval) { ticket->enc_part2 = dec_tkt_part; } clean_scratch(); |