diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-01-06 21:22:23 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-01-06 21:22:23 +0100 |
commit | 6532ac1037b448508642d4d97d21ab103bd6735c (patch) | |
tree | e341bfbc88da6cd1ca8f7c528164411082f1f49f /src/transport/plugin_transport_tcp.c | |
parent | 8dea30580ceaa571c9d85b5e8a563201ed622ed7 (diff) | |
download | gnunet-6532ac1037b448508642d4d97d21ab103bd6735c.tar.gz gnunet-6532ac1037b448508642d4d97d21ab103bd6735c.zip |
internally assert that asprintf size allocation never fails
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index c5d6e6d34..8b00543c3 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -3351,9 +3351,10 @@ handle_tcp_data (void *cls, | |||
3351 | void *vaddr = NULL; | 3351 | void *vaddr = NULL; |
3352 | size_t alen; | 3352 | size_t alen; |
3353 | 3353 | ||
3354 | GNUNET_SERVER_client_get_address (client, | 3354 | GNUNET_assert (GNUNET_OK == |
3355 | &vaddr, | 3355 | GNUNET_SERVER_client_get_address (client, |
3356 | &alen); | 3356 | &vaddr, |
3357 | &alen)); | ||
3357 | LOG (GNUNET_ERROR_TYPE_ERROR, | 3358 | LOG (GNUNET_ERROR_TYPE_ERROR, |
3358 | "Received unexpected %u bytes of type %u from `%s'\n", | 3359 | "Received unexpected %u bytes of type %u from `%s'\n", |
3359 | (unsigned int) ntohs (message->size), | 3360 | (unsigned int) ntohs (message->size), |