From: Theodore Tso Date: Wed, 28 Sep 1994 03:33:29 +0000 (+0000) Subject: = should have been == in commented out code X-Git-Tag: krb5-1.0-beta4.3~85 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=50b4f3cba3dfe75d3d5cfb937b8938f251069a5f;p=krb5.git = should have been == in commented out code git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4359 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/asn.1/ChangeLog b/src/lib/krb5/asn.1/ChangeLog index 4413c9643..139d5bfbd 100644 --- a/src/lib/krb5/asn.1/ChangeLog +++ b/src/lib/krb5/asn.1/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 27 23:31:50 1994 Theodore Y. Ts'o (tytso@dcl) + + * krb5_encode.c (encode_krb5_enc_kdc_rep_part): = should have been + == in commented-out code. Get it right for the future... + Wed Sep 21 00:18:12 1994 Theodore Y. Ts'o (tytso@dcl) * krb5_decode.c (decode_krb5_authdata): Initialize variable where diff --git a/src/lib/krb5/asn.1/krb5_encode.c b/src/lib/krb5/asn.1/krb5_encode.c index 40fb7870d..3f0241ac4 100644 --- a/src/lib/krb5/asn.1/krb5_encode.c +++ b/src/lib/krb5/asn.1/krb5_encode.c @@ -318,8 +318,8 @@ krb5_error_code encode_krb5_enc_kdc_rep_part(DECLARG(const krb5_enc_kdc_rep_part #ifdef KRB5_ENCKRB5KDCREPPART_COMPAT krb5_apptag(26); #else - if(rep->msg_type = KRB5_AS_REP){ krb5_apptag(ASN1_KRB_AS_REP); } - else if(rep->msg_type = KRB5_TGS_REP){ krb5_apptag(ASN1_KRB_TGS_REP); } + if (rep->msg_type == KRB5_AS_REP) { krb5_apptag(ASN1_KRB_AS_REP); } + else if (rep->msg_type == KRB5_TGS_REP) { krb5_apptag(ASN1_KRB_TGS_REP); } else return KRB5_BADMSGTYPE; #endif krb5_cleanup();