]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#2280, reject sequences with invalid lengths
authorHoward Chu <hyc@openldap.org>
Thu, 23 Jan 2003 02:19:59 +0000 (02:19 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 23 Jan 2003 02:19:59 +0000 (02:19 +0000)
libraries/liblber/decode.c

index 91c4a82d9bb78e060bc0d98c7648b7153414d00c..fe4bbd0c1cbe716b60d929129c7efed084e088f9 100644 (file)
@@ -598,7 +598,7 @@ ber_next_element(
 
        assert( LBER_VALID( ber ) );
 
-       if ( ber->ber_ptr == last ) {
+       if ( ber->ber_ptr >= last ) {
                return LBER_DEFAULT;
        }