Commit bb81b1e3 authored by Pieter Hintjens's avatar Pieter Hintjens

Fixed issue #865 - validation on ZMQ_TCP_KEEPALIVE

parent 046e37e9
......@@ -206,7 +206,7 @@ int zmq::options_t::setsockopt (int option_, const void *optval_,
break;
case ZMQ_TCP_KEEPALIVE:
if (is_int && (value >= -1 || value <= 1)) {
if (is_int && (value == -1 || value == 0 || value == 1)) {
tcp_keepalive = value;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment