mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 21:50:49 +01:00
Fixed issue #865 - validation on ZMQ_TCP_KEEPALIVE
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user