diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-29 08:14:22 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2012-08-29 08:14:22 +0000 |
commit | 423481816cf9ca360c76212b9a61139d44c1384a (patch) | |
tree | b6d71f655b438014bf65aa783f4a0fb48ce0dc15 /src/transport/test_plugin_transport.c | |
parent | 16b4ee2bb05a07346f4ccaa4776d43771e646fd9 (diff) | |
download | gnunet-423481816cf9ca360c76212b9a61139d44c1384a.tar.gz gnunet-423481816cf9ca360c76212b9a61139d44c1384a.zip |
changes
Diffstat (limited to 'src/transport/test_plugin_transport.c')
-rw-r--r-- | src/transport/test_plugin_transport.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/transport/test_plugin_transport.c b/src/transport/test_plugin_transport.c index 500bcaf39..6632244e2 100644 --- a/src/transport/test_plugin_transport.c +++ b/src/transport/test_plugin_transport.c | |||
@@ -135,6 +135,8 @@ struct AddressWrapper | |||
135 | void *addr; | 135 | void *addr; |
136 | 136 | ||
137 | size_t addrlen; | 137 | size_t addrlen; |
138 | |||
139 | char *addrstring; | ||
138 | }; | 140 | }; |
139 | 141 | ||
140 | static void | 142 | static void |
@@ -183,9 +185,12 @@ end_badly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) | |||
183 | while (NULL != head) | 185 | while (NULL != head) |
184 | { | 186 | { |
185 | w = head; | 187 | w = head; |
188 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
189 | _("Plugin did not remove address `%s' \n"), w->addrstring); | ||
186 | GNUNET_CONTAINER_DLL_remove (head, tail, w); | 190 | GNUNET_CONTAINER_DLL_remove (head, tail, w); |
187 | c ++; | 191 | c ++; |
188 | GNUNET_free (w->addr); | 192 | GNUNET_free (w->addr); |
193 | GNUNET_free (w->addrstring); | ||
189 | GNUNET_free (w); | 194 | GNUNET_free (w); |
190 | } | 195 | } |
191 | if (c > 0) | 196 | if (c > 0) |
@@ -286,7 +291,7 @@ env_notify_address (void *cls, | |||
286 | end_badly_now(); | 291 | end_badly_now(); |
287 | return; | 292 | return; |
288 | } | 293 | } |
289 | 294 | w->addrstring = strdup (api->address_to_string (api, w->addr, w->addrlen)); | |
290 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, | 295 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, |
291 | _("Plugin added address `%s'\n"), a2s); | 296 | _("Plugin added address `%s'\n"), a2s); |
292 | 297 | ||
@@ -353,6 +358,7 @@ env_notify_address (void *cls, | |||
353 | 358 | ||
354 | GNUNET_CONTAINER_DLL_remove (head, tail, w); | 359 | GNUNET_CONTAINER_DLL_remove (head, tail, w); |
355 | GNUNET_free (w->addr); | 360 | GNUNET_free (w->addr); |
361 | GNUNET_free (w->addrstring); | ||
356 | GNUNET_free (w); | 362 | GNUNET_free (w); |
357 | } | 363 | } |
358 | else | 364 | else |