Fix SEGV on single-byte connection input

This commit is contained in:
Howard Chu 2002-07-11 12:26:35 +00:00
parent ef3d895cb8
commit 2adfd47e88

View 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;