uhttpd: mark a TLS connections internally to clean up their state
authorFelix Fietkau <nbd@openwrt.org>
Tue, 14 May 2013 17:40:27 +0000 (19:40 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 14 May 2013 17:40:29 +0000 (19:40 +0200)
Fixes a per-SSL-connection memory leak

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
client.c

index 3163afc..6d23283 100644 (file)
--- 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;
 }