From fbb228050ac98edcaa705a4d80dfffd50af2143b Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 6 Sep 2021 00:12:04 +0900 Subject: [PATCH] nghttpx: Fix uninitialized dnf fields --- src/shrpx_config.h | 1 + src/shrpx_worker.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/shrpx_config.h b/src/shrpx_config.h index 33c0cfa9..9b508293 100644 --- a/src/shrpx_config.h +++ b/src/shrpx_config.h @@ -541,6 +541,7 @@ struct DownstreamAddrGroupConfig { : pattern(pattern), affinity{SessionAffinity::NONE}, redirect_if_not_tls(false), + dnf{false}, timeout{} {} StringRef pattern; diff --git a/src/shrpx_worker.h b/src/shrpx_worker.h index de053100..72ef2e68 100644 --- a/src/shrpx_worker.h +++ b/src/shrpx_worker.h @@ -198,6 +198,7 @@ struct SharedDownstreamAddr { : balloc(1024, 1024), affinity{SessionAffinity::NONE}, redirect_if_not_tls{false}, + dnf{false}, timeout{} {} SharedDownstreamAddr(const SharedDownstreamAddr &) = delete;