From 0566a5833bbdc6000727a6314452295283cbd2af Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 30 Aug 2021 18:39:28 +0900 Subject: [PATCH] nghttpx: Fix infinite loop --- src/shrpx.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index e69505e9..55ffbb29 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -1211,7 +1211,8 @@ get_inherited_quic_lingering_worker_process_from_env() { auto hex_cid_prefix = StringRef{p, end}; if (hex_cid_prefix.size() != SHRPX_QUIC_CID_PREFIXLEN * 2 || !util::is_hex_string(hex_cid_prefix)) { - continue; + LOG(WARN) << "Found invalid CID prefix=" << hex_cid_prefix; + break; } if (LOG_ENABLED(INFO)) {