Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 39688
b: refs/heads/master
c: ea614d7
h: refs/heads/master
v: v3
  • Loading branch information
Paul Moore authored and David S. Miller committed Oct 16, 2006
1 parent 9193ff7 commit 9f12204
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: bf0edf39296097f20c5fcc4919ed7d339194bd75
refs/heads/master: ea614d7f4fb2d436b7a5ee490d1011615f6b38d5
4 changes: 2 additions & 2 deletions trunk/net/ipv4/cipso_ipv4.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,8 @@ static int cipso_v4_map_cat_rbm_hton(const struct cipso_v4_doi *doi_def,

switch (doi_def->type) {
case CIPSO_V4_MAP_PASS:
net_spot_max = host_cat_len - 1;
while (net_spot_max > 0 && host_cat[net_spot_max] == 0)
net_spot_max = host_cat_len;
while (net_spot_max > 0 && host_cat[net_spot_max - 1] == 0)
net_spot_max--;
if (net_spot_max > net_cat_len)
return -EINVAL;
Expand Down

0 comments on commit 9f12204

Please sign in to comment.