diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-11-01 22:44:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-11-01 22:44:28 +0000 |
commit | bdef044d942a5f75f698bef989a1e768e79d2976 (patch) | |
tree | 59ef3e1b4158bb1ab76af5d88df503a69f5ab3be /src/dv | |
parent | e9cf3782a3c5c2bcf6bdeff58b8a3536585791eb (diff) | |
download | gnunet-bdef044d942a5f75f698bef989a1e768e79d2976.tar.gz gnunet-bdef044d942a5f75f698bef989a1e768e79d2976.zip |
fixes from LRN for DEBUG code
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/gnunet-service-dv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dv/gnunet-service-dv.c b/src/dv/gnunet-service-dv.c index c9360fbb4..2d91bce41 100644 --- a/src/dv/gnunet-service-dv.c +++ b/src/dv/gnunet-service-dv.c | |||
@@ -1534,9 +1534,10 @@ static int handle_dv_data_message (void *cls, | |||
1534 | else | 1534 | else |
1535 | { | 1535 | { |
1536 | #if DEBUG_MESSAGE_DROP | 1536 | #if DEBUG_MESSAGE_DROP |
1537 | direct_id = GNUNET_strdup(GNUNET_i2s(&dn->identity)); | 1537 | char *direct_id = GNUNET_strdup(GNUNET_i2s(&dn->identity)); |
1538 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1538 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1539 | "%s: DROPPING MESSAGE type %d, forwarding failed! Message immediately from %s!\n", GNUNET_i2s(&my_identity), ntohs(((struct GNUNET_MessageHeader *)&incoming[1])->type), direct_id); | 1539 | "%s: DROPPING MESSAGE type %d, forwarding failed! Message immediately from %s!\n", GNUNET_i2s(&my_identity), ntohs(((struct GNUNET_MessageHeader *)&incoming[1])->type), direct_id); |
1540 | GNUNET_free (direct_id); | ||
1540 | #endif | 1541 | #endif |
1541 | return GNUNET_SYSERR; | 1542 | return GNUNET_SYSERR; |
1542 | } | 1543 | } |