- fix
authorBart Polot <bart@net.in.tum.de>
Sat, 18 Aug 2012 10:38:33 +0000 (10:38 +0000)
committerBart Polot <bart@net.in.tum.de>
Sat, 18 Aug 2012 10:38:33 +0000 (10:38 +0000)
src/mesh/mesh_api.c

index 412180aa55045bafb2bcced33197c4efebeb7ef7..fe2dff4e50ac8e7bcc17fe1e681a21a7a02a627b 100644 (file)
@@ -702,7 +702,7 @@ send_ack (struct GNUNET_MESH_Handle *h, struct GNUNET_MESH_Tunnel *t)
   msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_ACK);
   msg.header.size = htons (sizeof (msg));
   msg.tunnel_id = htonl (t->tid);
-  msg.max_pid = t->last_recv_pid + 1;
+  msg.max_pid = htonl (t->last_recv_pid + 1);
 
   send_packet (h, &msg.header, t);
   return;