Commit 91bdbc51 authored by Alexander Alashkin's avatar Alexander Alashkin Committed by Cesanta Bot

Fix warn in mg_lwip_if_poll

PUBLISHED_FROM=0bcb3e892e1ba2329aef5d17375fe4d3879dc666
parent 707b9ed2
......@@ -14212,7 +14212,8 @@ time_t mg_lwip_if_poll(struct mg_iface *iface, int timeout_ms) {
if ((nc->flags & MG_F_SSL) && cs != NULL && cs->pcb.tcp != NULL &&
cs->pcb.tcp->state == ESTABLISHED) {
if (((nc->flags & MG_F_WANT_WRITE) ||
(nc->send_mbuf.len > 0) && (nc->flags & MG_F_SSL_HANDSHAKE_DONE)) &&
((nc->send_mbuf.len > 0) &&
(nc->flags & MG_F_SSL_HANDSHAKE_DONE))) &&
cs->pcb.tcp->snd_buf > 0) {
/* Can write more. */
if (nc->flags & MG_F_SSL_HANDSHAKE_DONE) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment