From: Kurt Zeilenga Date: Wed, 26 Apr 2000 09:17:05 +0000 (+0000) Subject: Fix typo in multbyte tag code X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3060 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=459194f3479e6ee27b4f8d5d0883fdce1ecc42eb;p=openldap Fix typo in multbyte tag code --- diff --git a/libraries/liblber/decode.c b/libraries/liblber/decode.c index 9971195c88..d51f41ec53 100644 --- a/libraries/liblber/decode.c +++ b/libraries/liblber/decode.c @@ -57,7 +57,7 @@ ber_get_tag( BerElement *ber ) return( LBER_DEFAULT ); tag << 8; - tag &= 0x00ffUL & (ber_tag_t) xbyte; + tag |= 0x00ffUL & (ber_tag_t) xbyte; if ( ! (xbyte & LBER_MORE_TAG_MASK) ) break; @@ -67,7 +67,6 @@ ber_get_tag( BerElement *ber ) if ( i == sizeof(ber_tag_t) ) return( LBER_DEFAULT ); - /* want leading, not trailing 0's */ return tag; }