|
|
| Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
| version 1.108, 2005/02/26 21:34:55 | version 1.108.2.3, 2006/10/25 12:58:56 | ||
|---|---|---|---|
|
|
||
| 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... */ | ||