diff --git a/Userland/Libraries/LibCrypto/ASN1/DER.cpp b/Userland/Libraries/LibCrypto/ASN1/DER.cpp index 9f3b51f160..846327c553 100644 --- a/Userland/Libraries/LibCrypto/ASN1/DER.cpp +++ b/Userland/Libraries/LibCrypto/ASN1/DER.cpp @@ -100,7 +100,7 @@ Result Decoder::decode_boolean(ReadonlyBytes data) if (data.size() != 1) return DecodeError::InvalidInputFormat; - return data[0] == 0; + return data[0] != 0; } Result Decoder::decode_arbitrary_sized_integer(ReadonlyBytes data)