Skip to content

Commit

Permalink
s3:utils: Avoid integer overflow (CID 1035488)
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
  • Loading branch information
jsutton24 authored and abartlet committed Oct 13, 2023
1 parent 7eaad46 commit 59e1687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source3/utils/net_serverid.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ static int wipedbs_traverse_open(struct db_record *db_rec,

nttime_to_timeval(&disconnect_time, open->disconnect_time);
tdiff = usec_time_diff(&state->now, &disconnect_time);
reached = (tdiff >= 1000*open->durable_timeout_msec);
reached = (tdiff >= INT64_C(1000)*open->durable_timeout_msec);

if (state->verbose) {
TALLOC_CTX *mem_ctx = talloc_new(talloc_tos());
Expand Down

0 comments on commit 59e1687

Please sign in to comment.