]> git.sur5r.net Git - openldap/commitdiff
Fix typo in multbyte tag code
authorKurt Zeilenga <kurt@openldap.org>
Wed, 26 Apr 2000 09:17:05 +0000 (09:17 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 26 Apr 2000 09:17:05 +0000 (09:17 +0000)
libraries/liblber/decode.c

index 9971195c88a2121a5cae5ca9a4eb11b4661da724..d51f41ec5338234b14d0af2d42106de54dfe5cef 100644 (file)
@@ -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;
 }