From 6cfda9ba4533630d273331b6017f2a5f5e5dbad4 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Fri, 21 Apr 1995 02:35:46 +0000 Subject: [PATCH] Added parenthesis to fix precedence problem in ASN.1 backwards compatibility code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5422 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/asn.1/asn1_k_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c index b25e5e7fc..4a7e668c6 100644 --- a/src/lib/krb5/asn.1/asn1_k_decode.c +++ b/src/lib/krb5/asn.1/asn1_k_decode.c @@ -353,7 +353,7 @@ asn1_error_code asn1_decode_krb5_flags(buf, val) f = (f<<8) | ((krb5_flags)o&asn1_pad_mask[pad]); #ifdef BACKWARD_BITMASK_COMPAT - if ((f & 0xFFFF0000 == 0) && (f & 0xFFFF != 0)) + if (((f & 0xFFFF0000) == 0) && ((f & 0xFFFF) != 0)) #endif f = (asn1_swbits[(f & 0xff)] << 24) | (asn1_swbits[(f >> 8) & 0xff] << 16) | (asn1_swbits[(f >> 16) & 0xff] << 8) | asn1_swbits[(f >> 24) & 0xff]; -- 2.26.2