From: Matthias Wachs Date: Thu, 17 Jun 2010 07:49:10 +0000 (+0000) Subject: (no commit message) X-Git-Tag: initial-import-from-subversion-38251~21362 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=aab741c5f8cd585334e80390ffece9985a9745eb;p=oweals%2Fgnunet.git --- diff --git a/src/transport/plugin_transport_http.c b/src/transport/plugin_transport_http.c index a452d8dfe..7292e1990 100644 --- a/src/transport/plugin_transport_http.c +++ b/src/transport/plugin_transport_http.c @@ -626,9 +626,13 @@ accessHandlerCallback (void *cls, tmp = GNUNET_malloc (INET6_ADDRSTRLEN + 14); inet_ntop(AF_INET6, &((struct sockaddr_in6 *) cs->addr_inbound)->sin6_addr,address,INET6_ADDRSTRLEN); GNUNET_asprintf(&tmp,"[%s]:%u",address,ntohs(cs->addr_inbound->sin_port)); + + } + if (NULL != tmp) + { + plugin->env->receive(plugin->env, &(cs->sender), gn_msg, 1, cs , tmp, strlen(tmp)); + GNUNET_free_non_null(tmp); } - plugin->env->receive(plugin->env, &(cs->sender), gn_msg, 1, cs , tmp, strlen(tmp)); - GNUNET_free(tmp); send_error_to_client = GNUNET_NO; } }