diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 0b8cfb883..cbc1eb94b 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -5229,8 +5229,10 @@ int ssl_sock_prepare_srv_ctx(struct server *srv) { int cfgerr = 0; SSL_CTX *ctx; - /* Automatic memory computations need to know we use SSL there */ - global.ssl_used_backend = 1; + /* Automatic memory computations need to know we use SSL there + * If this is an internal proxy, don't use it for the computation */ + if (!(srv->proxy && srv->proxy->cap & PR_CAP_INT)) + global.ssl_used_backend = 1; /* Initiate SSL context for current server */ if (!srv->ssl_ctx.reused_sess) {