Andrey V. Elsukov c6ded47d0b [udp] fix possible mbuf and lock leak in udp_input().
In error case we can leave `inp' locked, also we need to free
mbuf chain `m' in the same case. Release the lock and use `badunlocked'
label to exit with freed mbuf. Also modify UDP error statistic to
match the IPv6 code.

Remove redundant INP_RUNLOCK() from the `if (last == NULL)' block,
there are no ways to reach this point with locked `inp'.

Obtained from:	Yandex LLC
MFC after:	3 days
Sponsored by:	Yandex LLC
2021-02-11 12:08:41 +03:00
..
2020-12-25 11:33:17 +00:00
2020-11-29 13:41:49 +00:00
2020-11-22 20:21:10 +00:00
2019-12-06 16:35:48 +00:00
2019-10-07 22:40:05 +00:00
2020-11-29 19:43:33 +00:00
2020-10-07 15:22:48 +00:00
2020-09-24 12:26:06 +00:00
2021-01-24 00:07:41 +01:00
2020-09-24 12:26:06 +00:00
2021-01-31 23:46:53 +01:00
2020-09-24 12:26:06 +00:00
2021-01-24 00:07:41 +01:00