speeling and coverity fix
authorNathan S. Evans <evans@in.tum.de>
Tue, 21 Dec 2010 13:08:36 +0000 (13:08 +0000)
committerNathan S. Evans <evans@in.tum.de>
Tue, 21 Dec 2010 13:08:36 +0000 (13:08 +0000)
src/transport/gnunet-service-transport.c
src/transport/plugin_transport_tcp.c

index e1f6793b23f5cb20515e8776d4b240041a7a7981..293e9c63790d4a55adbb19c1d22a3c97f6691508 100644 (file)
@@ -1406,7 +1406,7 @@ transmit_send_ok (struct TransportClient *client,
  *
  * @param cls closure, identifies the entry on the
  *            message queue that was transmitted and the
- *            client responsible for queueing the message
+ *            client responsible for queuing the message
  * @param target the peer receiving the message
  * @param result GNUNET_OK on success, if the transmission
  *           failed, we should not tell the client to transmit
index 1ffc8b2605f8efd82ce3b0e02f01c6753feafcb1..483619b4a8db881f579e96e70673eeeb7435733a 100644 (file)
@@ -1099,7 +1099,7 @@ disconnect_session (struct Session *session)
        GNUNET_SERVER_receive_done (session->client,
                                    GNUNET_SYSERR);     
     }
-  if (session->client != NULL) 
+  else if (session->client != NULL)
     GNUNET_SERVER_client_drop (session->client);
   GNUNET_STATISTICS_update (session->plugin->env->stats,
                            gettext_noop ("# TCP sessions active"),