Merge pull request #2735 from pavel-pimenov/fix-728

Excessive check options.mechanism == ZMQ_NULL
This commit is contained in:
Luca Boccassi 2017-09-04 14:50:34 +01:00 committed by GitHub
commit 197ae832bf

View File

@ -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()
);
}