diff options
author | dequis <dx@dxzone.com.ar> | 2017-06-17 14:30:37 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2017-06-17 15:34:36 -0300 |
commit | 7354a74c654f1717d08a37c2b118141655974bc0 (patch) | |
tree | bcabcf818ec09a8b4083a4baf4fa04b7b50156cb /src/core/servers-reconnect.c | |
parent | 9d3cfe1069b5cfaf0efb972e36695b781ecf93de (diff) | |
download | irssi-7354a74c654f1717d08a37c2b118141655974bc0.zip |
parse_time_interval: Allow negative time in settings
This splits sign parsing out of parse_time_interval_uint() so that the
negative sign is applied outside of the unsigned context where the
number parsing is done, and after all the checks that it's lower than
(1 << 31)
This fixes issues with settings like `server_reconnect_time`,
`server_connect_timeout` and `lag_max_before_disconnect`, which accepted
-1 as a valid value.
Diffstat (limited to 'src/core/servers-reconnect.c')
0 files changed, 0 insertions, 0 deletions