(usagi-users 03498) a bug in xfrm_policy_byid(...)?
| Newsgroups | gmane.linux.ipv6.usagi.users |
|---|---|
| Organization | Soochow University |
| Message-ID | <[email protected]> |
hi,
in linux-2.6.*/net/xfrm/xfrm_policy.c, function
struct xfrm_policy *xfrm_policy_byid(int dir, u32 id, int delete)
there is one line like this:
for (p = &xfrm_policy_list[id & 7]; (pol=*p)!=NULL; p = &pol->next) {
should it link this?
for (p = &xfrm_policy_list[dir & 7]; (pol=*p)!=NULL; p = &pol->next) {
Is it a bug or something else? Thanks.
--
Kiang