aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport_api_core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport_api_core.c')
-rw-r--r--src/transport/transport_api_core.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/transport/transport_api_core.c b/src/transport/transport_api_core.c
index 5d841fa10..7d4b415bd 100644
--- a/src/transport/transport_api_core.c
+++ b/src/transport/transport_api_core.c
@@ -622,13 +622,14 @@ handle_send_ok (void *cls, const struct SendOkMessage *okm)
622 struct Neighbour *n; 622 struct Neighbour *n;
623 uint32_t bytes_msg; 623 uint32_t bytes_msg;
624 uint32_t bytes_physical; 624 uint32_t bytes_physical;
625 uint16_t success = ntohs (okm->success);
625 626
626 bytes_msg = ntohl (okm->bytes_msg); 627 bytes_msg = ntohs (okm->bytes_msg);
627 bytes_physical = ntohl (okm->bytes_physical); 628 bytes_physical = ntohl (okm->bytes_physical);
628 LOG (GNUNET_ERROR_TYPE_DEBUG, 629 LOG (GNUNET_ERROR_TYPE_DEBUG,
629 "Receiving SEND_OK message, transmission to %s %s.\n", 630 "Receiving SEND_OK message, transmission to %s %s.\n",
630 GNUNET_i2s (&okm->peer), 631 GNUNET_i2s (&okm->peer),
631 ntohl (okm->success) == GNUNET_OK ? "succeeded" : "failed"); 632 success == GNUNET_OK ? "succeeded" : "failed");
632 n = neighbour_find (h, &okm->peer); 633 n = neighbour_find (h, &okm->peer);
633 if (NULL == n) 634 if (NULL == n)
634 { 635 {
@@ -891,7 +892,7 @@ GNUNET_TRANSPORT_core_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
891 reconnect (h); 892 reconnect (h);
892 if (NULL == h->mq) 893 if (NULL == h->mq)
893 { 894 {
894 GNUNET_free_non_null (h->handlers); 895 GNUNET_free (h->handlers);
895 GNUNET_free (h); 896 GNUNET_free (h);
896 return NULL; 897 return NULL;
897 } 898 }
@@ -922,7 +923,7 @@ GNUNET_TRANSPORT_core_disconnect (struct GNUNET_TRANSPORT_CoreHandle *handle)
922 } 923 }
923 GNUNET_CONTAINER_multipeermap_destroy (handle->neighbours); 924 GNUNET_CONTAINER_multipeermap_destroy (handle->neighbours);
924 handle->neighbours = NULL; 925 handle->neighbours = NULL;
925 GNUNET_free_non_null (handle->handlers); 926 GNUNET_free (handle->handlers);
926 handle->handlers = NULL; 927 handle->handlers = NULL;
927 GNUNET_free (handle); 928 GNUNET_free (handle);
928} 929}