From 156e3d7014a9b7ac3ca2161bb09a62d6a410fb69 Mon Sep 17 00:00:00 2001 From: SerinaNya <34389622+SerinaNya@users.noreply.github.com> Date: Sat, 18 Apr 2026 16:26:35 +0800 Subject: [PATCH] fix(edge_utils): update memcpy to use n3n_sock_t for destination --- src/edge_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/edge_utils.c b/src/edge_utils.c index a67ced95..60ef57d2 100644 --- a/src/edge_utils.c +++ b/src/edge_utils.c @@ -2180,7 +2180,7 @@ static int find_peer_destination (struct n3n_runtime_data * eee, } if(retval == 0) { - memcpy(destination, &(eee->curr_sn->sock), sizeof(struct sockaddr_in)); + memcpy(destination, &(eee->curr_sn->sock), sizeof(n3n_sock_t)); traceEvent(TRACE_DEBUG, "p2p peer %s not found, using supernode", macaddr_str(mac_buf, mac_address));