[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13232 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13232 - gnunet/src/transport |
Date: |
Fri, 8 Oct 2010 16:22:25 +0200 |
Author: wachs
Date: 2010-10-08 16:22:25 +0200 (Fri, 08 Oct 2010)
New Revision: 13232
Modified:
gnunet/src/transport/plugin_transport_http.c
Log:
fixed bug related to Codesonar 10818.81116
Modified: gnunet/src/transport/plugin_transport_http.c
===================================================================
--- gnunet/src/transport/plugin_transport_http.c 2010-10-08 14:19:06 UTC
(rev 13231)
+++ gnunet/src/transport/plugin_transport_http.c 2010-10-08 14:22:25 UTC
(rev 13232)
@@ -747,14 +747,17 @@
{
GNUNET_CONTAINER_DLL_insert(plugin->ipv4_addr_head,plugin->ipv4_addr_tail,t4);
plugin->env->notify_address(plugin->env->cls,PROTOCOL_PREFIX,t4, sizeof (struct
IPv4HttpAddress), GNUNET_TIME_UNIT_FOREVER_REL);
+ return GNUNET_OK;
}
+ GNUNET_free (t4);
+ return GNUNET_OK;
}
else
{
GNUNET_CONTAINER_DLL_insert(plugin->ipv4_addr_head,plugin->ipv4_addr_tail,t4);
plugin->env->notify_address(plugin->env->cls,PROTOCOL_PREFIX,t4,
sizeof (struct IPv4HttpAddress), GNUNET_TIME_UNIT_FOREVER_REL);
+ return GNUNET_OK;
}
-
}
else if ((af == AF_INET6) && (plugin->use_ipv6 == GNUNET_YES) &&
(plugin->bind4_address == NULL))
{
@@ -775,17 +778,17 @@
t6->u6_port = htons (plugin->port_inbound);
plugin->env->notify_address(plugin->env->cls,PROTOCOL_PREFIX,t6,sizeof (struct
IPv6HttpAddress) , GNUNET_TIME_UNIT_FOREVER_REL);
GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head,plugin->ipv6_addr_tail,t6);
+ return GNUNET_OK;
}
+ GNUNET_free (t6);
+ return GNUNET_OK;
}
- else
- {
- memcpy (&t6->ipv6_addr,
- &((struct sockaddr_in6 *) addr)->sin6_addr,
- sizeof (struct in6_addr));
- t6->u6_port = htons (plugin->port_inbound);
-
GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head,plugin->ipv6_addr_tail,t6);
-
plugin->env->notify_address(plugin->env->cls,PROTOCOL_PREFIX,t6,sizeof (struct
IPv6HttpAddress) , GNUNET_TIME_UNIT_FOREVER_REL);
- }
+ memcpy (&t6->ipv6_addr,
+ &((struct sockaddr_in6 *) addr)->sin6_addr,
+ sizeof (struct in6_addr));
+ t6->u6_port = htons (plugin->port_inbound);
+
GNUNET_CONTAINER_DLL_insert(plugin->ipv6_addr_head,plugin->ipv6_addr_tail,t6);
+
plugin->env->notify_address(plugin->env->cls,PROTOCOL_PREFIX,t6,sizeof (struct
IPv6HttpAddress) , GNUNET_TIME_UNIT_FOREVER_REL);
}
return GNUNET_OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13232 - gnunet/src/transport,
gnunet <=