From: Hallvard Furuseth Date: Sun, 19 Jan 2003 14:02:06 +0000 (+0000) Subject: Remove pointless `unsigned < 0' test. X-Git-Tag: NO_SLAP_OP_BLOCKS~609 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9d11c5ea46bb0be004c41040f96f83e8cc1f34b3;p=openldap Remove pointless `unsigned < 0' test. --- diff --git a/libraries/liblber/decode.c b/libraries/liblber/decode.c index c01c2b209c..91c4a82d9b 100644 --- a/libraries/liblber/decode.c +++ b/libraries/liblber/decode.c @@ -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;