]> git.sur5r.net Git - openldap/commitdiff
Remove pointless `unsigned < 0' test.
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 19 Jan 2003 14:02:06 +0000 (14:02 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 19 Jan 2003 14:02:06 +0000 (14:02 +0000)
libraries/liblber/decode.c

index c01c2b209cd25fb5aa274cdfab1f158375e93579..91c4a82d9bb78e060bc0d98c7648b7153414d00c 100644 (file)
@@ -141,11 +141,6 @@ ber_skip_tag( BerElement *ber, ber_len_t *len )
                *len = lc;
        }
 
-       /* BER length should be non-negative */
-       if( *len < 0 ) {
-               return LBER_DEFAULT;
-       }
-
        /* BER element should have enough data left */
        if( *len > (ber_len_t) ber_pvt_ber_remaining( ber ) ) {
                return LBER_DEFAULT;