[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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