(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 17 Jun 2010 07:49:10 +0000 (07:49 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 17 Jun 2010 07:49:10 +0000 (07:49 +0000)
src/transport/plugin_transport_http.c

index a452d8dfe2ba4d00db05a947a6b3c74a6650c7b5..7292e19909fb496c42e452601dc6df82c5661e55 100644 (file)
@@ -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;
         }
       }