diff options
author | Paul Willoughby <paulw@spacemonkey.com> | 2018-09-26 11:53:14 -0600 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-11-26 11:05:22 +0100 |
commit | 0bba1ce1129e79fa3907b16b31da44670fa19fc5 (patch) | |
tree | ef3b3bca4eef6f07e4234cb5427ceacfc04e1768 /client.c | |
parent | 2ed3341605701d8c1a4b36e82376cfd02de4e44f (diff) |
uhttpd: fix building without TLS and Lua support
Adds ifdefs to fix building without TLS and Lua support
Signed-off-by: Paul Willoughby <paulw@spacemonkey.com>
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |