From d037bd4f563d01aed264fcc1c0b5d408b201d512 Mon Sep 17 00:00:00 2001 From: Andreas Heil Date: Sun, 19 Apr 2020 15:39:08 +0200 Subject: [PATCH] fix typo in memcpy call --- src/capture_eep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/capture_eep.c b/src/capture_eep.c index 387e649..8bee60a 100644 --- a/src/capture_eep.c +++ b/src/capture_eep.c @@ -444,7 +444,7 @@ capture_eep_send_v3(packet_t *pkt) /* IPv6 */ else if(pkt->ip_version == 6) { /* SRC IPv6 */ - memcpy((void*) buffer+buflen, &src_ip4, sizeof(struct hep_chunk_ip6)); + memcpy((void*) buffer+buflen, &src_ip6, sizeof(struct hep_chunk_ip6)); buflen += sizeof(struct hep_chunk_ip6); memcpy((void*) buffer+buflen, &dst_ip6, sizeof(struct hep_chunk_ip6));