]> git.sur5r.net Git - openldap/commitdiff
Clean up prev commit
authorHoward Chu <hyc@openldap.org>
Thu, 24 Apr 2003 04:20:17 +0000 (04:20 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 24 Apr 2003 04:20:17 +0000 (04:20 +0000)
libraries/liblber/io.c

index 4928dba08825ff7ee34c45789541b7a93602ce14..921363177b4a13b9515ea3016971e1ed18d1235a 100644 (file)
@@ -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;