]> Zhao Yanbai Git Server - minix.git/commit
libc: check raw IP socket type before using it 97/3297/1
authorDavid van Moolenbroek <david@minix3.org>
Sat, 9 Jan 2016 13:34:13 +0000 (13:34 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 22 Feb 2016 23:21:05 +0000 (23:21 +0000)
commit17580212b4483d32a2ce093ee2170d08dff979e8
tree660ff6079b5e2103cce8e07f68857447e6e53095
parent5ef5b27fc158620d80785f43f03fc1ff30cbe16f
libc: check raw IP socket type before using it

Previously, the libc sendto(3) and recvfrom(3) implementations would
blindly assume that any unrecognized socket is a raw-IP socket.  This
is not only inconsistent but also messes with returned error codes.

Change-Id: Id0328f04ea8ca0968a4e8636bc441caa0c3579b7
minix/lib/libc/sys/recvfrom.c
minix/lib/libc/sys/sendto.c