diff options
Diffstat (limited to 'src/dv/plugin_transport_dv.c')
-rw-r--r-- | src/dv/plugin_transport_dv.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/dv/plugin_transport_dv.c b/src/dv/plugin_transport_dv.c index 569213f72..78200e634 100644 --- a/src/dv/plugin_transport_dv.c +++ b/src/dv/plugin_transport_dv.c | |||
@@ -160,10 +160,17 @@ handle_dv_message_received (void *cls, struct GNUNET_PeerIdentity *sender, | |||
160 | my_id, GNUNET_i2s (sender), | 160 | my_id, GNUNET_i2s (sender), |
161 | ntohs (((struct GNUNET_MessageHeader *) msg)->type), | 161 | ntohs (((struct GNUNET_MessageHeader *) msg)->type), |
162 | distance); | 162 | distance); |
163 | if (sender_address_len == (2 * sizeof(struct GNUNET_PeerIdentity))) | 163 | if (sender_address_len == (2 * sizeof (struct GNUNET_PeerIdentity))) |
164 | { | 164 | { |
165 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "plugin_transport_dv", "Parsed sender address: %s:%s\n", GNUNET_i2s((struct GNUNET_PeerIdentity *)sender_address), GNUNET_h2s(&((struct GNUNET_PeerIdentity *)&sender_address[sizeof(struct GNUNET_PeerIdentity)])->hashPubKey)); | 165 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "plugin_transport_dv", |
166 | } | 166 | "Parsed sender address: %s:%s\n", |
167 | GNUNET_i2s ((struct GNUNET_PeerIdentity *) sender_address), | ||
168 | GNUNET_h2s (& | ||
169 | ((struct GNUNET_PeerIdentity *) | ||
170 | &sender_address[sizeof | ||
171 | (struct | ||
172 | GNUNET_PeerIdentity)])->hashPubKey)); | ||
173 | } | ||
167 | 174 | ||
168 | GNUNET_free_non_null (my_id); | 175 | GNUNET_free_non_null (my_id); |
169 | #endif | 176 | #endif |