Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45406
b: refs/heads/master
c: 2a2f11c
h: refs/heads/master
v: v3
  • Loading branch information
Paul Moore authored and David S. Miller committed Jan 9, 2007
1 parent 5016368 commit 45feac3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 797951200679f1d5ea12a2e58cc7bdbc2848764c
refs/heads/master: 2a2f11c227bdf292b3a2900ad04139d301b56ac4
6 changes: 3 additions & 3 deletions trunk/net/netlabel/netlabel_cipso_v4.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,12 @@ static int netlbl_cipsov4_add_common(struct genl_info *info,

nla_for_each_nested(nla, info->attrs[NLBL_CIPSOV4_A_TAGLST], nla_rem)
if (nla->nla_type == NLBL_CIPSOV4_A_TAG) {
if (iter > CIPSO_V4_TAG_MAXCNT)
if (iter >= CIPSO_V4_TAG_MAXCNT)
return -EINVAL;
doi_def->tags[iter++] = nla_get_u8(nla);
}
if (iter < CIPSO_V4_TAG_MAXCNT)
doi_def->tags[iter] = CIPSO_V4_TAG_INVALID;
while (iter < CIPSO_V4_TAG_MAXCNT)
doi_def->tags[iter++] = CIPSO_V4_TAG_INVALID;

return 0;
}
Expand Down

0 comments on commit 45feac3

Please sign in to comment.