Commit fdb93a74 authored by Swann Perarnau's avatar Swann Perarnau

[fix] missing arg to setsockopt

parent e70b2039
Pipeline #4771 passed with stages
in 26 seconds
......@@ -29,7 +29,7 @@ int nrm_init(struct nrm_context *ctxt, const char *uuid)
ctxt->app_uuid = (char *)uuid;
ctxt->context = zmq_ctx_new();
ctxt->socket = zmq_socket(ctxt->context, ZMQ_DEALER);
zmq_setsockopt(ctxt->socket, ZMQ_IDENTITY, ctxt->app_uuid);
zmq_setsockopt(ctxt->socket, ZMQ_IDENTITY, ctxt->app_uuid, strnlen(uuid, 255));
int err = zmq_connect(ctxt->socket, uri);
assert(err == 0);
char buf[512];
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment