Fix error in validate_signature_fields which prevented signature expiration from being properly evaluated (LP: #2068937)

This commit is contained in:
Scott Kitterman committed 2024-06-23 16:34:58 -04:00
1 parent ab569cc77c
commit ed5931c0c9
2 files changed
+8 -4

No files matched your search

+4 -4
View File
@@ -345,10 +345,10 @@ def validate_signature_fields(sig, mandatory_fields=[b'v', b'a', b'b', b'bh', b'
if x_sign < now - slop:
raise ValidationError(
"x= value is past (%s)" % sig[b'x'])
if x_sign < t_sign:
raise ValidationError(
"x= value is less than t= value (x=%s t=%s)" %
(sig[b'x'], sig[b't']))
if x_sign < t_sign:
raise ValidationError(
"x= value is less than t= value (x=%s t=%s)" %
(sig[b'x'], sig[b't']))
def rfc822_parse(message):