summaryrefslogtreecommitdiff
path: root/src/transport/transport_api_address_to_string.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-11 08:42:40 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-11 08:42:40 +0000
commit48fa0ba8abea2464b2df67247ae1bd50d0f1f934 (patch)
treedae4c813f027986748b1b3d2a3f84f8d2a7eb00c /src/transport/transport_api_address_to_string.c
parent09c50fa070ad81f2d213975782b2948a7cb82428 (diff)
-send proper termination on error
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r--src/transport/transport_api_address_to_string.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c
index afd0c7deb..e36904212 100644
--- a/src/transport/transport_api_address_to_string.c
+++ b/src/transport/transport_api_address_to_string.c
@@ -76,8 +76,7 @@ address_response_processor (void *cls,
alucb->cb (alucb->cb_cls,
NULL,
GNUNET_SYSERR);
- GNUNET_CLIENT_disconnect (alucb->client);
- GNUNET_free (alucb);
+ GNUNET_TRANSPORT_address_to_string_cancel (alucb);
return;
}
GNUNET_break (ntohs (msg->type) ==
@@ -90,8 +89,7 @@ address_response_processor (void *cls,
alucb->cb (alucb->cb_cls,
NULL,
GNUNET_SYSERR);
- GNUNET_CLIENT_disconnect (alucb->client);
- GNUNET_free (alucb);
+ GNUNET_TRANSPORT_address_to_string_cancel (alucb);
return;
}
atsm = (const struct AddressToStringResultMessage *) msg;
@@ -126,8 +124,7 @@ address_response_processor (void *cls,
alucb->cb (alucb->cb_cls,
NULL,
GNUNET_OK);
- GNUNET_CLIENT_disconnect (alucb->client);
- GNUNET_free (alucb);
+ GNUNET_TRANSPORT_address_to_string_cancel (alucb);
return;
}
address = (const char *) &atsm[1];
@@ -139,8 +136,7 @@ address_response_processor (void *cls,
alucb->cb (alucb->cb_cls,
NULL,
GNUNET_SYSERR);
- GNUNET_CLIENT_disconnect (alucb->client);
- GNUNET_free (alucb);
+ GNUNET_TRANSPORT_address_to_string_cancel (alucb);
return;
}
/* expect more replies */