From 998def6e7a20bdf0a14b0177d9668a6c76fac19b Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Wed, 26 Aug 2020 16:59:36 +0200 Subject: [PATCH] Explicitly prevent use of FEATURE_CONNECTION_SHARING without FEATURE_CONNECTION_KEEP_ALIVE It makes no sense and does not compile anyway. Sponsored by: Robert Klemme --- gateway.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gateway.c b/gateway.c index 64ba5236..46db1e32 100644 --- a/gateway.c +++ b/gateway.c @@ -129,6 +129,9 @@ struct socks_reply { static const char socks_userid[] = "anonymous"; #ifdef FEATURE_CONNECTION_SHARING +#ifndef FEATURE_CONNECTION_KEEP_ALIVE +#error Using FEATURE_CONNECTION_SHARING without FEATURE_CONNECTION_KEEP_ALIVE is impossible +#endif #define MAX_REUSABLE_CONNECTIONS 100 -- 2.39.2