mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
s3: correct check for usleep value boundaries
This commit is contained in:
parent
bfd1f5ddc6
commit
7cdad30b96
@ -94,7 +94,7 @@ int sys_usleep(long usecs)
|
||||
* is not SPEC1170 complient... grumble... JRA.
|
||||
*/
|
||||
|
||||
if(usecs < 0 || usecs > 1000000) {
|
||||
if(usecs < 0 || usecs > 999999) {
|
||||
errno = EINVAL;
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user