[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15549 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15549 - gnunet/src/transport |
Date: |
Fri, 10 Jun 2011 17:38:43 +0200 |
Author: wachs
Date: 2011-06-10 17:38:43 +0200 (Fri, 10 Jun 2011)
New Revision: 15549
Modified:
gnunet/src/transport/plugin_transport_tcp.c
Log:
fix segfault
Modified: gnunet/src/transport/plugin_transport_tcp.c
===================================================================
--- gnunet/src/transport/plugin_transport_tcp.c 2011-06-10 15:38:41 UTC (rev
15548)
+++ gnunet/src/transport/plugin_transport_tcp.c 2011-06-10 15:38:43 UTC (rev
15549)
@@ -1813,15 +1813,18 @@
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
return;
}
+
+ tcp_nat_probe = (const struct TCP_NAT_ProbeMessage *)message;
+
if (0 == memcmp (&tcp_nat_probe->clientIdentity,
- plugin->env->my_identity,
- sizeof (struct GNUNET_PeerIdentity)))
+ plugin->env->my_identity,
+ sizeof (struct GNUNET_PeerIdentity)))
{
/* refuse connections from ourselves */
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
return;
}
- tcp_nat_probe = (const struct TCP_NAT_ProbeMessage *)message;
+
session = GNUNET_CONTAINER_multihashmap_get(plugin->nat_wait_conns,
&tcp_nat_probe->clientIdentity.hashPubKey);
if (session == NULL)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15549 - gnunet/src/transport,
gnunet <=