Changed to make saber flame less..
authorTheodore Tso <tytso@mit.edu>
Wed, 26 Aug 1992 21:49:14 +0000 (21:49 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 26 Aug 1992 21:49:14 +0000 (21:49 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2372 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/decode_kdc.c
src/lib/krb5/krb/encode_kdc.c

index ddd53005fc83c848a39efbadb5580a1020de28d8..83a5b6e3a24421a43e413b7ff5e5672d7b01afbb 100644 (file)
@@ -76,7 +76,8 @@ OLDDECLARG(krb5_kdc_rep **, dec_rep)
        krb5_free_kdc_rep(local_dec_rep);
        return KRB5_WRONG_ETYPE;
     }
-    if (retval = krb5_kdc_rep_decrypt_proc(key, 0, local_dec_rep)) {
+    retval = krb5_kdc_rep_decrypt_proc(key, 0, local_dec_rep);
+    if (retval) {
        krb5_free_kdc_rep(local_dec_rep);
        return(retval);
     }
index 83ccfe9f4024182e084298d788caf55f2e4c2a64..d39ab2569cc135e418a119023a0d88ec9469ad1b 100644 (file)
@@ -76,7 +76,8 @@ OLDDECLARG(krb5_data **, enc_rep)
        return KRB5_BADMSGTYPE;
     }
 
-    if (retval = encode_krb5_enc_kdc_rep_part(encpart, &scratch)) {
+    retval = encode_krb5_enc_kdc_rep_part(encpart, &scratch);
+    if (retval) {
        return retval;
     }
 
@@ -110,22 +111,25 @@ free(dec_rep->enc_part.ciphertext.data); \
 dec_rep->enc_part.ciphertext.length = 0; \
 dec_rep->enc_part.ciphertext.data = 0;}
 
-    if (retval = krb5_process_key(&eblock, client_key)) {
+    retval = krb5_process_key(&eblock, client_key);
+    if (retval) {
        goto clean_encpart;
     }
 
 #define cleanup_prockey() {(void) krb5_finish_key(&eblock);}
 
-    if (retval = krb5_encrypt((krb5_pointer) scratch->data,
+    retval = krb5_encrypt((krb5_pointer) scratch->data,
                              (krb5_pointer) dec_rep->enc_part.ciphertext.data,
-                             scratch->length, &eblock, 0)) {
+                             scratch->length, &eblock, 0);
+    if (retval) {
        goto clean_prockey;
     }
 
     /* do some cleanup */
     cleanup_scratch();
 
-    if (retval = krb5_finish_key(&eblock)) {
+    retval = krb5_finish_key(&eblock);
+    if (retval) {
        cleanup_encpart();
        return retval;
     }
@@ -153,3 +157,5 @@ dec_rep->enc_part.ciphertext.data = 0;}
 
     return retval;
 }
+
+