init
authorChristian Grothoff <christian@grothoff.org>
Wed, 22 Dec 2010 11:55:51 +0000 (11:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 22 Dec 2010 11:55:51 +0000 (11:55 +0000)
src/core/core_api.c
src/core/gnunet-service-core.c

index 3eb12f25ceebb093e261c5abf9cc7af3b466c5ed..7d3e3d41d4c9000a3d1c2333bef455425bb3d2eb 100644 (file)
@@ -964,6 +964,7 @@ main_notify_handler (void *cls,
          GNUNET_break (0);
          return;
        }
+      GNUNET_break (0 == ntohl (dnm->reserved));
 #if DEBUG_CORE
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  "Received notification about disconnect from `%s'.\n",
index de830a396e45b6b40b8642bc201a4092730648cc..d22fce4c05408a51fa9593276d3fb554e52129ff 100644 (file)
@@ -2927,6 +2927,7 @@ handle_client_request_connect (void *cls,
       GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
       return;
     }
+  GNUNET_break (ntohl (cm->reserved) == 0);
   GNUNET_SERVER_receive_done (client, GNUNET_OK);
   n = find_neighbour (&cm->peer);
   if (n == NULL)
@@ -4459,6 +4460,7 @@ handle_transport_notify_disconnect (void *cls,
     {
       cnm.header.size = htons (sizeof (struct DisconnectNotifyMessage));
       cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT);
+      cnm.reserved = htonl (0);
       cnm.peer = *peer;
       send_to_all_clients (&cnm.header, GNUNET_NO, GNUNET_CORE_OPTION_SEND_DISCONNECT);
     }