summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-05-14 19:40:27 +0200
committerFelix Fietkau <nbd@openwrt.org>2013-05-14 19:40:29 +0200
commita5b6d0f4211fe22e86175b58d59876c81bbd3886 (patch)
tree0c7d8f9bacfbe1b17c6f942bdf8dab4eb5be9551
parentd518cb32327492ad73c4583bb69d1d678410a631 (diff)
downloaduhttpd2-a5b6d0f4211fe22e86175b58d59876c81bbd3886.tar.gz
uhttpd: mark a TLS connections internally to clean up their state
Fixes a per-SSL-connection memory leak Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r--client.c1
1 files changed, 1 insertions, 0 deletions
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;
}