summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/client.c b/client.c
index 3c1aa9d..5913553 100644
--- a/client.c
+++ b/client.c
@@ -557,11 +557,13 @@ void uh_client_notify_state(struct client *cl)
if (!s->eof || s->w.data_bytes)
return;
+#ifdef HAVE_TLS
if (cl->tls && cl->ssl.conn && cl->ssl.conn->w.data_bytes) {
cl->ssl.conn->eof = s->eof;
if (!ustream_write_pending(cl->ssl.conn))
return;
}
+#endif
}
return client_close(cl);