Vadim Fedorenko 9bfce73c89 udp: check encap socket in __udp_lib_err
Commit d26796ae5894 ("udp: check udp sock encap_type in __udp_lib_err")
added checks for encapsulated sockets but it broke cases when there is
no implementation of encap_err_lookup for encapsulation, i.e. ESP in
UDP encapsulation. Fix it by calling encap_err_lookup only if socket
implements this method otherwise treat it as legal socket.

Fixes: d26796ae5894 ("udp: check udp sock encap_type in __udp_lib_err")
Signed-off-by: Vadim Fedorenko <vfedorenko@novek.ru>
Reviewed-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-07-21 08:49:31 -07:00
..
2021-06-11 14:48:50 +02:00
2019-07-27 14:23:48 -07:00
2021-06-11 14:48:50 +02:00
2020-03-29 22:30:57 -07:00
2021-06-29 11:28:21 -07:00
2021-04-29 15:34:15 -07:00
2020-12-16 11:01:04 -08:00
2021-07-21 08:49:31 -07:00