diff options
Diffstat (limited to 'src/dv/dv_api.c')
-rw-r--r-- | src/dv/dv_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dv/dv_api.c b/src/dv/dv_api.c index 60c1ba4e4..182f9ab72 100644 --- a/src/dv/dv_api.c +++ b/src/dv/dv_api.c | |||
@@ -171,7 +171,8 @@ transmit_pending (void *cls, size_t size, void *buf) | |||
171 | size_t tsize; | 171 | size_t tsize; |
172 | 172 | ||
173 | #if DEBUG_DV | 173 | #if DEBUG_DV |
174 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "DV API: Transmit pending called with message type %d\n", ntohs(handle->current->msg->header.type)); | 174 | if (handle->current != NULL) |
175 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "DV API: Transmit pending called with message type %d\n", ntohs(handle->current->msg->header.type)); | ||
175 | #endif | 176 | #endif |
176 | 177 | ||
177 | if (buf == NULL) | 178 | if (buf == NULL) |
@@ -320,6 +321,7 @@ void handle_message_receipt (void *cls, | |||
320 | 321 | ||
321 | #if DEBUG_DV | 322 | #if DEBUG_DV |
322 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "packed message type: %d or %d\n", ntohs(((struct GNUNET_MessageHeader *)packed_msg)->type), ((struct GNUNET_MessageHeader *)packed_msg)->type); | 323 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "packed message type: %d or %d\n", ntohs(((struct GNUNET_MessageHeader *)packed_msg)->type), ((struct GNUNET_MessageHeader *)packed_msg)->type); |
324 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "message sender reported as %s\n", GNUNET_i2s(&received_msg->sender)); | ||
323 | #endif | 325 | #endif |
324 | handle->receive_handler(handle->receive_cls, | 326 | handle->receive_handler(handle->receive_cls, |
325 | &received_msg->sender, | 327 | &received_msg->sender, |