mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-06 08:41:15 +01:00
Merge pull request #2735 from pavel-pimenov/fix-728
Excessive check options.mechanism == ZMQ_NULL
This commit is contained in:
commit
197ae832bf
@ -374,7 +374,7 @@ bool zmq::session_base_t::zap_enabled ()
|
|||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
options.mechanism != ZMQ_NULL ||
|
options.mechanism != ZMQ_NULL ||
|
||||||
(options.mechanism == ZMQ_NULL && options.zap_domain.length() > 0)
|
!options.zap_domain.empty()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user