From ded5a43ed37fe7a19e79c33bd1b6146ff41c316a Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sun, 18 Oct 2026 03:44:30 +0200 Subject: Point v4 address to correct memory location --- ot_livesync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ot_livesync.c b/ot_livesync.c index fbedb73..f620592 100644 --- a/ot_livesync.c +++ b/ot_livesync.c @@ -143,9 +143,9 @@ static void livesync_handle_peersync(struct ot_workstruct *ws, size_t peer_size) /* Now basic sanity checks have been done on the live sync packet We might add more testing and logging. */ while ((ssize_t)(off + sizeof(ot_hash) + peer_size) <= ws->request_size) { - uint8_t *peer_ip = ws->request + off + sizeof(ot_hash); + char *peer_ip = ws->request + off + sizeof(ot_hash); if (peer_size == OT_PEER_SIZE4) - memcpy(&ws->peer + sizeof(V4mappedprefix), peer_ip, peer_size); + memcpy(&ws->peer[0] + sizeof(V4mappedprefix), peer_ip, peer_size); else memcpy(&ws->peer, peer_ip, peer_size); ws->hash = (ot_hash *)(ws->request + off); -- cgit v1.3