Commit 197ae832 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

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

Excessive check options.mechanism == ZMQ_NULL
parents 7afd6ab5 0e8bf352
...@@ -374,7 +374,7 @@ bool zmq::session_base_t::zap_enabled () ...@@ -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()
); );
} }
......
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