(usagi-users 03498) a bug in xfrm_policy_byid(...)?

[email protected]
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.