aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornevans <nevans@140774ce-b5e7-0310-ab8b-a85725594a96>2010-06-27 14:30:36 +0000
committernevans <nevans@140774ce-b5e7-0310-ab8b-a85725594a96>2010-06-27 14:30:36 +0000
commit8a9787f929b217acd52b0a49866e6bd4a34d1405 (patch)
tree8db40bafe17a2e9ba8d9baeb6466c1b550e89b74 /src
parent1f83221f99cf693a9665a0d5ff697857059b2853 (diff)
debug fix
git-svn-id: https://gnunet.org/svn/gnunet@11982 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src')
-rw-r--r--src/dv/gnunet-service-dv.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c
index 6ef4e82fed..55e02e8489 100644
--- a/src/dv/gnunet-service-dv.c
+++ b/src/dv/gnunet-service-dv.c
@@ -1181,7 +1181,7 @@ send_message (const struct GNUNET_PeerIdentity * recipient,
GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "%s: Sending DATA message. Sender id %u, source %s, destination %s, via %s\n", GNUNET_i2s(&my_identity), sender_id, &encPeerFrom, &encPeerTo, &encPeerVia);
#endif
memcpy (&toSend[1], message, message_size);
- if (source->pkey == NULL) /* Test our hypothesis about message failures! */
+ if ((source != NULL) && (source->pkey == NULL)) /* Test our hypothesis about message failures! */
{
GNUNET_log(GNUNET_ERROR_TYPE_WARNING, "%s: Sending message, but anticipate recipient will not know sender!!!\n\n\n");
}
@@ -1194,10 +1194,6 @@ send_message (const struct GNUNET_PeerIdentity * recipient,
#endif
GNUNET_SCHEDULER_add_now(sched, try_core_send, NULL);
- /*if (core_transmit_handle == NULL)
- core_transmit_handle = GNUNET_CORE_notify_transmit_ready(coreAPI, importance, timeout, &target->referrer->identity, msg_size, &core_transmit_notify, NULL);
- else
- GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "%s: CORE ALREADY SENDING\n", "DV SEND MESSAGE", msg_size);*/
return (int) cost;
}
@@ -1488,9 +1484,8 @@ static int handle_dv_data_message (void *cls,
#endif
#if DEBUG_DV_MESSAGES
- direct_id = GNUNET_strdup(GNUNET_i2s(&dn->identity));
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "%s: DROPPING MESSAGE uid %u type %d, routing loop! Message immediately from %s!\n", my_short_id, ntohl(incoming->uid), ntohs(packed_message->type), direct_id);
+ "%s: DROPPING MESSAGE uid %u type %d, routing loop! Message immediately from %s!\n", my_short_id, ntohl(incoming->uid), ntohs(packed_message->type), GNUNET_i2s(&dn->identity));
#endif
return GNUNET_OK;
}