nghttpx: Fix crash if no keying materials are specified in file
This commit is contained in:
parent
7271537a15
commit
f6da0d342a
|
@ -290,6 +290,13 @@ read_quic_secret_file(const StringRef &path) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (kms.empty()) {
|
||||||
|
LOG(WARN)
|
||||||
|
<< "frontend-quic-secret-file: no keying materials are present in file "
|
||||||
|
<< path;
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
return qkms;
|
return qkms;
|
||||||
}
|
}
|
||||||
#endif // ENABLE_HTTP3
|
#endif // ENABLE_HTTP3
|
||||||
|
|
Loading…
Reference in New Issue