diff --git a/src/shrpx_config.cc b/src/shrpx_config.cc index 21a2395c..a5689219 100644 --- a/src/shrpx_config.cc +++ b/src/shrpx_config.cc @@ -290,6 +290,13 @@ read_quic_secret_file(const StringRef &path) { return nullptr; } + if (kms.empty()) { + LOG(WARN) + << "frontend-quic-secret-file: no keying materials are present in file " + << path; + return nullptr; + } + return qkms; } #endif // ENABLE_HTTP3