Commit 1ef582c0 authored by thorsten's avatar thorsten
Browse files

* Changed "set_sender_id", s.t. the string representation is set. Otherwise...

* Changed "set_sender_id", s.t. the string representation is set. Otherwise this seems to change over time
parent 1e64497a
......@@ -1062,10 +1062,13 @@ rmq_msg_send (rmq_msg_t *self, zsock_t *output)
break;
case RMQ_MSG_WRAPPER:
PUT_STRING ("RELAY");
PUT_NUMBER2 (1);
if (self->sender_id)
zuuid_export (self->sender_id, self->needle);
if (self->sender_id) {
zuuid_export(self->sender_id, self->needle);
}
else
memset (self->needle, 0, ZUUID_LEN);
self->needle += ZUUID_LEN;
......@@ -1618,6 +1621,8 @@ rmq_msg_set_sender_id (rmq_msg_t *self, zuuid_t *uuid)
assert (self);
zuuid_destroy (&self->sender_id);
self->sender_id = zuuid_dup (uuid);
int rc = zuuid_set_str(self->sender_id, zuuid_str(uuid));
assert(rc == 0);
}
// Get the sender_id field and transfer ownership to caller
......
Supports Markdown
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