From 9d11c5ea46bb0be004c41040f96f83e8cc1f34b3 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 19 Jan 2003 14:02:06 +0000 Subject: [PATCH] Remove pointless `unsigned < 0' test. --- libraries/liblber/decode.c | 5 ----- 1 file changed, 5 deletions(-) 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; -- 2.39.5