From 0610b3437282c2cf7766a1a2a0ef29d037448cc1 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Wed, 27 Jun 2018 20:53:30 +0200 Subject: [PATCH] httpd: fixed duplicate NULL check See bug #54196. Reported-by: Andrey Vinogradov Signed-off-by: Simon Goldschmidt --- src/apps/http/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/http/httpd.c b/src/apps/http/httpd.c index 06feb19b..35e28aa4 100644 --- a/src/apps/http/httpd.c +++ b/src/apps/http/httpd.c @@ -2495,7 +2495,7 @@ http_poll(void *arg, struct altcp_pcb *pcb) /* If this connection has a file open, try to send some more data. If * it has not yet received a GET request, don't do this since it will * cause the connection to close immediately. */ - if (hs && (hs->handle)) { + if (hs->handle) { LWIP_DEBUGF(HTTPD_DEBUG | LWIP_DBG_TRACE, ("http_poll: try to send more data\n")); if (http_send(pcb, hs)) { /* If we wrote anything to be sent, go ahead and send it now. */