Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58964
b: refs/heads/master
c: 558585a
h: refs/heads/master
v: v3
  • Loading branch information
Jing Min Zhao authored and David S. Miller committed Jul 11, 2007
1 parent 656bff6 commit b8b7b65
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 067b207b281db5e3f03f8d244286c20f61aa2343
refs/heads/master: 558585aad0c0ef83d3d14a1c7576b1e404ca1fbc
18 changes: 9 additions & 9 deletions trunk/net/netfilter/nf_conntrack_h323_asn1.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,15 +555,6 @@ int decode_seq(bitstr_t * bs, field_t * f, char *base, int level)

/* Decode the extension components */
for (opt = 0; opt < bmp2_len; opt++, i++, son++) {
if (i < f->ub && son->attr & STOP) {
PRINT("%*.s%s\n", (level + 1) * TAB_SIZE, " ",
son->name);
return H323_ERROR_STOP;
}

if (!((0x80000000 >> opt) & bmp2)) /* Not present */
continue;

/* Check Range */
if (i >= f->ub) { /* Newer Version? */
CHECK_BOUND(bs, 2);
Expand All @@ -573,6 +564,15 @@ int decode_seq(bitstr_t * bs, field_t * f, char *base, int level)
continue;
}

if (son->attr & STOP) {
PRINT("%*.s%s\n", (level + 1) * TAB_SIZE, " ",
son->name);
return H323_ERROR_STOP;
}

if (!((0x80000000 >> opt) & bmp2)) /* Not present */
continue;

CHECK_BOUND(bs, 2);
len = get_len(bs);
CHECK_BOUND(bs, len);
Expand Down

0 comments on commit b8b7b65

Please sign in to comment.