diff options
author | delphij <delphij@FreeBSD.org> | 2010-02-09 22:30:51 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2010-02-09 22:30:51 +0000 |
commit | 54ac71ad0f6c9320cedd699c4dce60be1177e418 (patch) | |
tree | b0e7379f53d44bb1702fe8769f453e089f5fc10a /usr.sbin/mlxcontrol | |
parent | eb28e347bf550058149b7d43646514104407e262 (diff) | |
download | FreeBSD-src-54ac71ad0f6c9320cedd699c4dce60be1177e418.zip FreeBSD-src-54ac71ad0f6c9320cedd699c4dce60be1177e418.tar.gz |
- 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
Diffstat (limited to 'usr.sbin/mlxcontrol')
0 files changed, 0 insertions, 0 deletions