From 2adfd47e88f6b5ee20f667b3c5104435631029cb Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 11 Jul 2002 12:26:35 +0000 Subject: [PATCH] Fix SEGV on single-byte connection input --- libraries/liblber/io.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.39.5