diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-12-22 11:55:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-12-22 11:55:51 +0000 |
commit | 47f65a4ce8fb23800a1a1093bc0b14038b3dc20b (patch) | |
tree | a112fd7d78974e5e32c8db31bfb60a822cd8af74 | |
parent | 0886b0534fa6a48e452a9fd4dcfebc520e6afd7c (diff) | |
download | gnunet-47f65a4ce8fb23800a1a1093bc0b14038b3dc20b.tar.gz gnunet-47f65a4ce8fb23800a1a1093bc0b14038b3dc20b.zip |
init
-rw-r--r-- | src/core/core_api.c | 1 | ||||
-rw-r--r-- | src/core/gnunet-service-core.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/core/core_api.c b/src/core/core_api.c index 3eb12f25c..7d3e3d41d 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c | |||
@@ -964,6 +964,7 @@ main_notify_handler (void *cls, | |||
964 | GNUNET_break (0); | 964 | GNUNET_break (0); |
965 | return; | 965 | return; |
966 | } | 966 | } |
967 | GNUNET_break (0 == ntohl (dnm->reserved)); | ||
967 | #if DEBUG_CORE | 968 | #if DEBUG_CORE |
968 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 969 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
969 | "Received notification about disconnect from `%s'.\n", | 970 | "Received notification about disconnect from `%s'.\n", |
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c index de830a396..d22fce4c0 100644 --- a/src/core/gnunet-service-core.c +++ b/src/core/gnunet-service-core.c | |||
@@ -2927,6 +2927,7 @@ handle_client_request_connect (void *cls, | |||
2927 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 2927 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
2928 | return; | 2928 | return; |
2929 | } | 2929 | } |
2930 | GNUNET_break (ntohl (cm->reserved) == 0); | ||
2930 | GNUNET_SERVER_receive_done (client, GNUNET_OK); | 2931 | GNUNET_SERVER_receive_done (client, GNUNET_OK); |
2931 | n = find_neighbour (&cm->peer); | 2932 | n = find_neighbour (&cm->peer); |
2932 | if (n == NULL) | 2933 | if (n == NULL) |
@@ -4459,6 +4460,7 @@ handle_transport_notify_disconnect (void *cls, | |||
4459 | { | 4460 | { |
4460 | cnm.header.size = htons (sizeof (struct DisconnectNotifyMessage)); | 4461 | cnm.header.size = htons (sizeof (struct DisconnectNotifyMessage)); |
4461 | cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT); | 4462 | cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT); |
4463 | cnm.reserved = htonl (0); | ||
4462 | cnm.peer = *peer; | 4464 | cnm.peer = *peer; |
4463 | send_to_all_clients (&cnm.header, GNUNET_NO, GNUNET_CORE_OPTION_SEND_DISCONNECT); | 4465 | send_to_all_clients (&cnm.header, GNUNET_NO, GNUNET_CORE_OPTION_SEND_DISCONNECT); |
4464 | } | 4466 | } |