X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fmesh%2Fmesh2_api.c;h=62531b824463b40e737c7e3233be38620c5c3fd0;hb=aa8154c504ead2c19ba3e0c59a48928e15cfc4b0;hp=de6c3b6f233ac44a17ea81469d639df897bc84a5;hpb=a84afce2ec0a3fdbc6512a9287c1a8ba995db865;p=oweals%2Fgnunet.git diff --git a/src/mesh/mesh2_api.c b/src/mesh/mesh2_api.c index de6c3b6f2..62531b824 100644 --- a/src/mesh/mesh2_api.c +++ b/src/mesh/mesh2_api.c @@ -1257,6 +1257,7 @@ send_callback (void *cls, size_t size, void *buf) uc.pid = htonl (t->next_send_pid); uc.ttl = 0; memset (&uc.oid, 0, sizeof (struct GNUNET_PeerIdentity)); + memcpy (cbuf, &uc, sizeof (uc)); } } t->next_send_pid++;