Edward Tomasz Napierala 4d2b7be54a Fix Linux recvmsg(2) when msg_namelen returned is 0. Previously
it would fail with EINVAL, breaking some of the Python regression
tests.

While here, cap the user-controlled message length.

Note that the code doesn't seem to be copying out the new length
in either (success or failure) case. This will be addressed separately.

Reviewed by:	kib
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25392
2020-07-05 10:57:28 +00:00
..
2020-07-01 00:33:16 +00:00
2020-04-24 01:27:25 +00:00
2020-06-21 03:39:26 +00:00
2020-06-04 17:20:58 +00:00
2020-07-04 06:22:05 +00:00
2020-05-23 17:51:06 +00:00
2020-06-30 15:58:29 +00:00
2020-07-01 00:33:16 +00:00
2020-06-21 03:39:26 +00:00
2020-06-21 02:49:56 +00:00
2020-07-04 06:22:05 +00:00
2020-02-03 17:35:11 +00:00