From: Felix Fietkau Date: Tue, 14 May 2013 17:40:27 +0000 (+0200) Subject: uhttpd: mark a TLS connections internally to clean up their state X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=commitdiff_plain;h=a5b6d0f4211fe22e86175b58d59876c81bbd3886 uhttpd: mark a TLS connections internally to clean up their state Fixes a per-SSL-connection memory leak Signed-off-by: Felix Fietkau --- diff --git a/client.c b/client.c index 3163afc..6d23283 100644 --- a/client.c +++ b/client.c @@ -567,6 +567,7 @@ bool uh_accept_client(int fd, bool tls) next_client = NULL; n_clients++; cl->id = client_id++; + cl->tls = tls; return true; }