core: Fix incorrect source address for multi-packet messages
We're currently passing the local eid to the RX handlers, which is the
destination address, not the source. Use the source instead.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
diff --git a/core.c b/core.c
index 08e5d05..72b511c 100644
--- a/core.c
+++ b/core.c
@@ -312,7 +312,7 @@
rc = mctp_msg_ctx_add_pkt(ctx, pkt);
if (!rc) {
- mctp->message_rx(bus->eid, mctp->message_rx_data,
+ mctp->message_rx(ctx->src, mctp->message_rx_data,
ctx->buf, ctx->buf_size);
}