diff -ruN boost_1_54_0-boot/boost/asio/detail/impl/signal_set_service.ipp boost_1_54_0-patched/boost/asio/detail/impl/signal_set_service.ipp
old
|
new
|
|
219 | 219 | int signal_number, boost::system::error_code& ec) |
220 | 220 | { |
221 | 221 | // Check that the signal number is valid. |
222 | | if (signal_number < 0 || signal_number > max_signal_number) |
| 222 | if (signal_number < 0 || signal_number >= max_signal_number) |
223 | 223 | { |
224 | 224 | ec = boost::asio::error::invalid_argument; |
225 | 225 | return ec; |
… |
… |
|
293 | 293 | int signal_number, boost::system::error_code& ec) |
294 | 294 | { |
295 | 295 | // Check that the signal number is valid. |
296 | | if (signal_number < 0 || signal_number > max_signal_number) |
| 296 | if (signal_number < 0 || signal_number >= max_signal_number) |
297 | 297 | { |
298 | 298 | ec = boost::asio::error::invalid_argument; |
299 | 299 | return ec; |