fix bug in message broadcast?

This commit is contained in:
hippoz 2023-01-16 16:05:35 +02:00
parent 60e606bf12
commit b318fea528
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED

View file

@ -306,6 +306,8 @@ int bus_broadcast_message(bus_t *s, wire_message_t *msg, wire_context_t *ctx, ch
TRYST(wire_compose_unicast_reply(reply_ctx, ctx, msg, sender_unique_name));
TRYST(send(c->fd, reply_ctx->data, reply_ctx->byte_cursor, 0));
ctx->byte_cursor = previous_cursor;
// TODO?
reply_ctx->byte_cursor = 0;
memset(reply_ctx->data, 0, reply_ctx->data_len);
break;
}