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

Fix reading multibyte lengths

parent 71e0359f
No related branches found
No related tags found
No related merge requests found
......@@ -551,12 +551,19 @@ ber_get_next(
return LBER_DEFAULT;
}
}
if (sblen == 1) continue;
ber->ber_tag = tag;
ber->ber_ptr = (char *)p;
}
if ( ber->ber_ptr == ber->ber_rwptr ) {
#if defined( EWOULDBLOCK )
errno = EWOULDBLOCK;
#elif defined( EAGAIN )
errno = EAGAIN;
#endif
return LBER_DEFAULT;
}
/* Now look for the length */
if (*ber->ber_ptr & 0x80) { /* multi-byte */
ber_len_t i;
......
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