Commit 8b06a24
xfrm: fix possible derferencing in error path
Fix derferencing pointer when xfrm_policy_lookup_bytype returns an
error.
Fixes: 63b21ca ("xfrm: introduce forwarding of ICMP Error messages")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/kernel-janitors/f6ef0d0d-96de-4e01-9dc3-c1b3a6338653@moroto.mountain/
Signed-off-by: Antony Antony <antony.antony@secunet.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>1 parent bccb798 commit 8b06a24
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3593 | 3593 | | |
3594 | 3594 | | |
3595 | 3595 | | |
| 3596 | + | |
| 3597 | + | |
3596 | 3598 | | |
3597 | 3599 | | |
3598 | 3600 | | |
| |||
0 commit comments