Skip to content
Snippets Groups Projects
Commit 2adfd47e authored by Howard Chu's avatar Howard Chu
Browse files

Fix SEGV on single-byte connection input

parent ef3d895c
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment