From 160446e093237aa2372b6afc270f24d123a210c5 Mon Sep 17 00:00:00 2001 From: kubistika Date: Sun, 27 Oct 2019 13:38:31 +0200 Subject: [PATCH] server: proxy: stop loading session captures config if it is disabled --- server/proxy/pf_config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/proxy/pf_config.c b/server/proxy/pf_config.c index 3d2bb88..33e627b 100644 --- a/server/proxy/pf_config.c +++ b/server/proxy/pf_config.c @@ -215,6 +215,9 @@ static BOOL pf_config_load_captures(wIniFile* ini, proxyConfig* config) const char* captures_dir; config->SessionCapture = pf_config_get_bool(ini, "SessionCapture", "Enabled"); + if (!config->SessionCapture) + return TRUE; + captures_dir = pf_config_get_str(ini, "SessionCapture", "CapturesDirectory"); if (!captures_dir) -- 2.7.4