summaryrefslogtreecommitdiff
path: root/src/core/servers-reconnect.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-06-17 14:30:37 -0300
committerdequis <dx@dxzone.com.ar>2017-06-17 15:34:36 -0300
commit7354a74c654f1717d08a37c2b118141655974bc0 (patch)
treebcabcf818ec09a8b4083a4baf4fa04b7b50156cb /src/core/servers-reconnect.c
parent9d3cfe1069b5cfaf0efb972e36695b781ecf93de (diff)
downloadirssi-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