xfrm4: Properly handle unsupported protocols
authorSteffen Klassert <steffen.klassert@secunet.com>
Tue, 29 Apr 2014 05:50:44 +0000 (07:50 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Tue, 29 Apr 2014 06:41:12 +0000 (08:41 +0200)
We don't catch the case if an unsupported protocol is submitted
to the xfrm4 protocol handlers, this can lead to NULL pointer
dereferences. Fix this by adding the appropriate checks.

Fixes: 3328715e ("xfrm4: Add IPsec protocol multiplexer")
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>

No differences found