[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11982 - gnunet/src/dv
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11982 - gnunet/src/dv |
Date: |
Sun, 27 Jun 2010 16:30:36 +0200 |
Author: nevans
Date: 2010-06-27 16:30:36 +0200 (Sun, 27 Jun 2010)
New Revision: 11982
Modified:
gnunet/src/dv/gnunet-service-dv.c
Log:
debug fix
Modified: gnunet/src/dv/gnunet-service-dv.c
===================================================================
--- gnunet/src/dv/gnunet-service-dv.c 2010-06-27 14:26:17 UTC (rev 11981)
+++ gnunet/src/dv/gnunet-service-dv.c 2010-06-27 14:30:36 UTC (rev 11982)
@@ -1181,7 +1181,7 @@
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 @@
#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 @@
#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;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11982 - gnunet/src/dv,
gnunet <=