mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-16 20:06:06 -05:00
Fix SEGV on single-byte connection input
This commit is contained in:
parent
ef3d895cb8
commit
2adfd47e88
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue