aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-09-19 08:55:11 +0000
committerChristian Grothoff <christian@grothoff.org>2011-09-19 08:55:11 +0000
commit9cec5480ce103b3abca1b59da5af36c145830f56 (patch)
tree3a1129a75f1f2d000124110df4f576b4728e32fb /src/transport/gnunet-service-transport.c
parentb01a8d7a3b54eb113c05f21eab120a83c1b369d4 (diff)
downloadgnunet-9cec5480ce103b3abca1b59da5af36c145830f56.tar.gz
gnunet-9cec5480ce103b3abca1b59da5af36c145830f56.zip
generate valid disconnect message -- Mantis #1789
Diffstat (limited to 'src/transport/gnunet-service-transport.c')
-rw-r--r--src/transport/gnunet-service-transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index d1ef887fd..4687a0907 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -205,8 +205,8 @@ plugin_env_receive_callback (void *cls, const struct GNUNET_PeerIdentity *peer,
205 * * way to communicate with this peer (other peer switched transport) */ 205 * * way to communicate with this peer (other peer switched transport) */
206 break; 206 break;
207 case GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT: 207 case GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_DISCONNECT:
208 /* TODO: do some validation to prevent an attacker from sending 208 /* FIXME: do some validation to prevent an attacker from sending
209 * a fake disconnect message... */ 209 * a fake disconnect message... */
210 GST_neighbours_force_disconnect (peer); 210 GST_neighbours_force_disconnect (peer);
211 break; 211 break;
212 case GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE: 212 case GNUNET_MESSAGE_TYPE_TRANSPORT_SESSION_KEEPALIVE: