From 234166144f8de1c14f1fe5b94ffd76e47265b931 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 13 Sep 2012 13:20:50 +0000 Subject: [PATCH] - unaligned memory access --- src/transport/gnunet-service-transport_validation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transport/gnunet-service-transport_validation.c b/src/transport/gnunet-service-transport_validation.c index a4222bff5..59fe1737f 100644 --- a/src/transport/gnunet-service-transport_validation.c +++ b/src/transport/gnunet-service-transport_validation.c @@ -902,7 +902,7 @@ GST_validation_handle_ping (const struct GNUNET_PeerIdentity *sender, sizeof (uint32_t) + sizeof (struct GNUNET_TIME_AbsoluteNBO) + alen + slen); pong->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_TRANSPORT_PONG_OWN); - pong->challenge = ping->challenge; + memcpy (&pong->challenge, &ping->challenge, sizeof (ping->challenge)); pong->addrlen = htonl (alen + slen); memcpy (&pong[1], addr, slen); /* Copy transport plugin */ #if KEEP_093_COMPATIBILITY -- 2.25.1