coverity 10048
authorMatthias Wachs <wachs@net.in.tum.de>
Wed, 25 Jan 2012 13:55:19 +0000 (13:55 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Wed, 25 Jan 2012 13:55:19 +0000 (13:55 +0000)
src/transport/plugin_transport_http_client.c

index 013b3f54410ffd8883d38994a2293752e154f2df..4679e451bbbecc22aeeb111b79deedd64ca4fa12 100644 (file)
@@ -144,9 +144,10 @@ client_schedule (struct Plugin *plugin, int now)
 int
 client_send (struct Session *s, struct HTTP_Message *msg)
 {
+  GNUNET_assert (s != NULL);
   GNUNET_CONTAINER_DLL_insert (s->msg_head, s->msg_tail, msg);
 
-  if ((s != NULL) && (s->client_put_paused == GNUNET_YES))
+  if (s->client_put_paused == GNUNET_YES)
   {
 #if VERBOSE_CLIENT
     GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, s->plugin->name,