From 361ec8bcd4837bcc55abb05fecac8d86f5a516c4 Mon Sep 17 00:00:00 2001 From: Unbit Date: Mon, 23 Dec 2013 13:08:31 +0100 Subject: [PATCH] fixed sni delete --- core/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ssl.c b/core/ssl.c index 88c3df16..8f312383 100644 --- a/core/ssl.c +++ b/core/ssl.c @@ -529,13 +529,13 @@ void uwsgi_ssl_del_sni_item(char *name, uint16_t name_len) { sni_item = usl; break; } - last_sni = NULL; + last_sni = usl; } if (!sni_item) return; if (last_sni) { - last_sni = sni_item->next; + last_sni->next = sni_item->next; } else { uwsgi.sni = sni_item->next;