From: Howard Chu Date: Thu, 11 Jul 2002 12:26:35 +0000 (+0000) Subject: Fix SEGV on single-byte connection input X-Git-Tag: NO_SLAP_OP_BLOCKS~1371 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2adfd47e88f6b5ee20f667b3c5104435631029cb;p=openldap Fix SEGV on single-byte connection input --- diff --git a/libraries/liblber/io.c b/libraries/liblber/io.c index 6474acd56d..7003ec297b 100644 --- a/libraries/liblber/io.c +++ b/libraries/liblber/io.c @@ -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;