mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
Clean up prev commit
This commit is contained in:
parent
b6111d793e
commit
a413bab19a
1 changed files with 3 additions and 5 deletions
|
|
@ -527,13 +527,11 @@ ber_get_next(
|
|||
tag = *p++;
|
||||
if ((tag & LBER_BIG_TAG_MASK) == LBER_BIG_TAG_MASK) {
|
||||
ber_len_t i;
|
||||
for (i=1; (char *)p<ber->ber_rwptr; i++,p++) {
|
||||
for (i=1; (char *)p<ber->ber_rwptr; i++) {
|
||||
tag <<= 8;
|
||||
tag |= *p;
|
||||
if (!(*p & LBER_MORE_TAG_MASK)) {
|
||||
p++;
|
||||
tag |= *p++;
|
||||
if (!(tag & LBER_MORE_TAG_MASK))
|
||||
break;
|
||||
}
|
||||
/* Is the tag too big? */
|
||||
if (i == sizeof(ber_tag_t)-1) {
|
||||
errno = ERANGE;
|
||||
|
|
|
|||
Loading…
Reference in a new issue