 diff -Nurd -X.diff_ignore freeciv/common/connection.h freeciv/common/connection.h
---- freeciv/common/connection.h	2012-05-16 22:19:49.000000000 +0300
-+++ freeciv/common/connection.h	2012-05-16 22:24:13.000000000 +0300
-@@ -126,6 +126,7 @@
+--- freeciv/common/connection.h	2012-05-19 01:03:51.000000000 +0300
++++ freeciv/common/connection.h	2012-05-19 01:05:22.000000000 +0300
+@@ -34,10 +34,12 @@
+ 
+ #include "fc_types.h"
+ 
++#include <jansson.h>
++
+ struct hash_table;
+ struct timer_list;
+ 
+-#define MAX_LEN_PACKET   4096
++#define MAX_LEN_PACKET   65536
+ 
+ #define MAX_LEN_BUFFER   (MAX_LEN_PACKET * 128)
+ #define MAX_LEN_CAPSTR    512
+@@ -126,6 +128,7 @@
    struct socket_packet_buffer *buffer;
    struct socket_packet_buffer *send_buffer;
    struct timer *last_write;

+  g_free(unesc_message);
 }
diff -Nurd -X.diff_ignore freeciv/server/sernet.c freeciv/server/sernet.c
--- freeciv/server/sernet.c	2012-05-16 22:07:34.000000000 +0300
+++ freeciv/server/sernet.c	2012-05-16 22:25:02.000000000 +0300
@@ -1233,7 +1233,7 @@
      * Generally we just want to run select again. */
   }

 **************************************************************************/
 void generic_handle_player_attribute_chunk(struct player *pplayer,
diff -Nurd -X.diff_ignore freeciv/common/packets.h freeciv/common/packets.h
--- freeciv/common/packets.h	2012-05-19 01:03:51.000000000 +0300
+++ freeciv/common/packets.h	2012-05-19 01:04:47.000000000 +0300
@@ -29,6 +29,7 @@
 #include "team.h"
 #include "unittype.h"
