Xin LI 5cb9c68cc9 - Return EAFNOSUPPORT instead of EINVAL for unsupported address family,
this matches the Linux behavior.
 - Check if we have sufficient space allocated for socket structure, which
   fixes a buffer overflow when wrong length is being passed into the
   emulation layer. [1]

PR:		kern/138860
Submitted by:	Mateusz Guzik <mjguzik gmail com>
Reported by:	Alexander Best [1]
MFC after:	2 weeks
2010-02-09 22:30:51 +00:00
..
2010-01-11 20:44:05 +00:00
2008-04-08 09:45:49 +00:00
2006-12-21 13:11:06 +00:00
2009-05-10 18:16:07 +00:00
2006-12-20 20:17:35 +00:00