1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

zeromq: only check for handshake if we are in a CurveZMQ session

This commit is contained in:
Steffen Vogel 2017-05-23 11:15:58 +02:00
parent 48b3898f23
commit eef7764b8a

View file

@ -334,8 +334,12 @@ int zeromq_start(struct node *n)
}
#ifdef ZMQ_BUILD_DRAFT_API
ret = get_monitor_event(z->subscriber.mon_socket, NULL, NULL);
return ret == ZMQ_EVENT_HANDSHAKE_SUCCEED;
if (z->curve.enabled) {
ret = get_monitor_event(z->subscriber.mon_socket, NULL, NULL);
return ret == ZMQ_EVENT_HANDSHAKE_SUCCEED;
}
else
return 0; /* The handshake events are only emitted for CurveZMQ sessions. */
#else
return 0;
#endif