mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-03 17:13:33 +01:00
Merge branch 'maint-0.3.2'
This commit is contained in:
commit
bcc96c77de
@ -286,8 +286,8 @@ update_socket_info_impl, (socket_table_ent_t *ent))
|
|||||||
* more in the kernel for now. */
|
* more in the kernel for now. */
|
||||||
ent->limit = 0;
|
ent->limit = 0;
|
||||||
} else {
|
} else {
|
||||||
/* Adding two positive int64_t together will always fit in an uint64_t.
|
/* The positive sum of two int64_t will always fit into an uint64_t.
|
||||||
* And we know this will always be positive. */
|
* And we know this will always be positive, since we checked above. */
|
||||||
ent->limit = (uint64_t)tcp_space + (uint64_t)extra_space;
|
ent->limit = (uint64_t)tcp_space + (uint64_t)extra_space;
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user