aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-06 16:37:32 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-06 16:37:32 +0100
commit6ddfa55804cca3706e4f9fe803a76b7bc5310d47 (patch)
tree74680ea76c9ffa05ce8be2b837df97e199e61586 /src/transport/plugin_transport_tcp.c
parentd3e5196f514ff1f76c137fa9db771a32765681f2 (diff)
downloadgnunet-6ddfa55804cca3706e4f9fe803a76b7bc5310d47.tar.gz
gnunet-6ddfa55804cca3706e4f9fe803a76b7bc5310d47.zip
fix indentation and use after free in tcp plugin
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 5b78dc970..c5d6e6d34 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -3172,8 +3172,6 @@ handle_tcp_welcome (void *cls,
3172 sizeof(struct GNUNET_PeerIdentity))) 3172 sizeof(struct GNUNET_PeerIdentity)))
3173 { 3173 {
3174 /* refuse connections from ourselves */ 3174 /* refuse connections from ourselves */
3175 GNUNET_SERVER_receive_done (client,
3176 GNUNET_SYSERR);
3177 if (GNUNET_OK == 3175 if (GNUNET_OK ==
3178 GNUNET_SERVER_client_get_address (client, 3176 GNUNET_SERVER_client_get_address (client,
3179 &vaddr, 3177 &vaddr,
@@ -3185,6 +3183,8 @@ handle_tcp_welcome (void *cls,
3185 GNUNET_a2s (vaddr, alen)); 3183 GNUNET_a2s (vaddr, alen));
3186 GNUNET_free (vaddr); 3184 GNUNET_free (vaddr);
3187 } 3185 }
3186 GNUNET_SERVER_receive_done (client,
3187 GNUNET_SYSERR);
3188 return; 3188 return;
3189 } 3189 }
3190 3190