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 3163afcca557612fdaf41bc687f1ca58d4cae00d..6d23283d9f3f1270efca79cef441b68b183b573c 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;
 }