From 40ebe7d1b0b71a705f8b23ba9c379eabdd38ca6c Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 16 Feb 2015 23:02:25 +1100 Subject: [PATCH] Delete subproxies from the correct hashlist --- src/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index 7612caa3..e32b0423 100644 --- a/src/generator.c +++ b/src/generator.c @@ -945,7 +945,7 @@ static void disable_subproxy(gdata_t *gdata, proxy_instance_t *proxi, proxy_inst subproxy = __subproxy_by_id(proxi, subproxy->subid); if (subproxy) { Close(subproxy->cs->fd); - HASH_DEL(proxi->subproxies, subproxy); + HASH_DELETE(sh, proxi->subproxies, subproxy); proxi->client_headroom -= proxi->clients_per_proxy; } mutex_unlock(&proxi->proxy_lock);