From 4cf3e69cdbc6b8050f0d9637f0f58f18758a73bf Mon Sep 17 00:00:00 2001 From: John Kohl Date: Tue, 17 Apr 1990 17:38:32 +0000 Subject: [PATCH] use macros to verify message type git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@482 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/send_tgs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/krb/send_tgs.c b/src/lib/krb5/krb/send_tgs.c index 9e4bf95fe..1960c5dd0 100644 --- a/src/lib/krb5/krb/send_tgs.c +++ b/src/lib/krb5/krb/send_tgs.c @@ -152,11 +152,11 @@ OLDDECLARG(krb5_response *,rep) KRB_ERROR is application 2 */ /* allow either constructed or primitive encoding, so check for bit 6 set or reset */ - if (rep->response.data[0] == 0x61 || - rep->response.data[0] == 0x21) { + + if (krb5_is_kdc_rep(&rep->response)) /* it's a KDC_REP--assume TGS_REP */ rep->message_type = KRB5_TGS_REP; - } else /* assume it's an error */ + else /* assume it's an error */ rep->message_type = KRB5_ERROR; return 0; } -- 2.26.2