[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071213.093130.98177469.davem@davemloft.net>
Date: Thu, 13 Dec 2007 09:31:30 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: herbert@...dor.apana.org.au
Cc: netdev@...r.kernel.org
Subject: Re: [IPSEC]: Fix zero return value in xfrm_lookup on error
From: Herbert Xu <herbert@...dor.apana.org.au>
Date: Fri, 14 Dec 2007 00:44:48 +0800
> [IPSEC]: Fix zero return value in xfrm_lookup on error
>
> Further testing shows that my ICMP relookup patch can cause xfrm_lookup
> to return zero on error which isn't very nice since it leads to the caller
> dying on null pointer dereference. The bug is due to not setting err
> to ENOENT just before we leave xfrm_lookup in case of no policy.
>
> This patch moves the err setting to where it should be.
>
> Signed-off-by: Herbert Xu <herbert@...dor.apana.org.au>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists