]> git.sur5r.net Git - openldap/commitdiff
Fix SEGV on single-byte connection input
authorHoward Chu <hyc@openldap.org>
Thu, 11 Jul 2002 12:26:35 +0000 (12:26 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 11 Jul 2002 12:26:35 +0000 (12:26 +0000)
libraries/liblber/io.c

index 6474acd56d4f3481d0d48882a35a522644b70145..7003ec297bdcff1c9ae322d32e238ee6a77b2849 100644 (file)
@@ -509,6 +509,8 @@ ber_get_next(
                        ber->ber_ptr = (char *)p;
                }
 
+               if (i == 1) continue;
+
                /* Now look for the length */
                if (*ber->ber_ptr & 0x80) {     /* multi-byte */
                        int llen = *(unsigned char *)ber->ber_ptr++ & 0x7f;