Small SO_RCVTIMEO and SO_SNDTIMEO values are mistakenly taken to be zero.
PR: kern/32827 Submitted by: Hartmut Brandt <brandt@fokus.gmd.de> Approved by: re (jhb) MFC after: 2 weeks
This commit is contained in:
parent
3fd2b0260e
commit
8819f45b51
@ -1380,6 +1380,8 @@ sosetopt(so, sopt)
|
||||
error = EDOM;
|
||||
goto bad;
|
||||
}
|
||||
if (val == 0 && tv.tv_usec != 0)
|
||||
val = 1;
|
||||
|
||||
switch (sopt->sopt_name) {
|
||||
case SO_SNDTIMEO:
|
||||
|
Loading…
x
Reference in New Issue
Block a user