mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 18:55:10 +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 (
|
||||
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