Return to uipc_socket.c CVS log | Up to [cvs.NetBSD.org] / src / sys / kern |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.111, 2005/05/08 18:44:39 | version 1.111.4.1, 2005/10/26 08:32:51 | ||
---|---|---|---|
|
|
||
error = EINVAL; | error = EINVAL; | ||
goto bad; | goto bad; | ||
} | } | ||
if (mtod(m, struct linger *)->l_linger < 0 || | |||
mtod(m, struct linger *)->l_linger > (INT_MAX / hz)) { | |||
error = EDOM; | |||
goto bad; | |||
} | |||
so->so_linger = mtod(m, struct linger *)->l_linger; | so->so_linger = mtod(m, struct linger *)->l_linger; | ||
/* fall thru... */ | /* fall thru... */ | ||