# This is a BitKeeper generated diff -Nru style patch. # # ChangeSet # 2004/10/18 21:57:18+02:00 kaber@coreworks.de # [XFRM]: Fix policy update bug when increasing priority of last policy # # Signed-off-by: Patrick McHardy # # net/xfrm/xfrm_policy.c # 2004/10/18 21:56:41+02:00 kaber@coreworks.de +1 -1 # [XFRM]: Fix policy update bug when increasing priority of last policy # # Signed-off-by: Patrick McHardy # diff -Nru a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c --- a/net/xfrm/xfrm_policy.c 2004-10-18 21:58:24 +02:00 +++ b/net/xfrm/xfrm_policy.c 2004-10-18 21:58:24 +02:00 @@ -340,7 +340,7 @@ } *p = pol->next; delpol = pol; - if (policy->priority > pol->priority) + if (policy->priority > pol->priority && *p != NULL) continue; } else if (policy->priority >= pol->priority) continue;