Commit cb6c5a0a authored by Volker Krause's avatar Volker Krause
Browse files

Fix certificate ordering when facing invalid dates

parent 77d2127d
......@@ -191,7 +191,10 @@ bool HealthCertificateManager::certLessThan(const CertData &lhs, const CertData
if (lhsDt == rhsDt) {
return lhs.name < rhs.name;
}
return lhsDt > rhsDt;
if (!lhsDt.isValid()) {
return false;
}
return !rhsDt.isValid() || lhsDt > rhsDt;
#else
return lhs.name < rhs.name;
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment