From 4e6eebaa9d271fd2b0e103653deec9ecfe550e7a Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Wed, 25 Jan 2012 13:55:19 +0000 Subject: coverity 10048 --- src/transport/plugin_transport_http_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/transport/plugin_transport_http_client.c') diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c index 013b3f544..4679e451b 100644 --- a/src/transport/plugin_transport_http_client.c +++ b/src/transport/plugin_transport_http_client.c @@ -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, -- cgit v1.2.3