mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:smbd: Avoid integer overflow (CID 1035487)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
1e4d4e6abd
commit
dbf96126cb
@ -423,7 +423,7 @@ void scavenger_schedule_disconnected(struct files_struct *fsp)
|
||||
return;
|
||||
}
|
||||
nttime_to_timeval(&disconnect_time, fsp->op->global->disconnect_time);
|
||||
timeout_usec = 1000 * fsp->op->global->durable_timeout_msec;
|
||||
timeout_usec = UINT64_C(1000) * fsp->op->global->durable_timeout_msec;
|
||||
until = timeval_add(&disconnect_time,
|
||||
timeout_usec / 1000000,
|
||||
timeout_usec % 1000000);
|
||||
|
Loading…
Reference in New Issue
Block a user