From fa515410aae2cf4ced2cf41cc6715fee6c6db344 Mon Sep 17 00:00:00 2001 From: Rob Percival Date: Tue, 23 Aug 2016 18:31:16 +0100 Subject: [PATCH] SCT_set_source resets validation_status This makes it consistent with all of the other SCT setters. Reviewed-by: Rich Salz Reviewed-by: Matt Caswell --- crypto/ct/ct_sct.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/ct/ct_sct.c b/crypto/ct/ct_sct.c index 65a20c669b..67adcfaa52 100644 --- a/crypto/ct/ct_sct.c +++ b/crypto/ct/ct_sct.c @@ -262,6 +262,7 @@ sct_source_t SCT_get_source(const SCT *sct) int SCT_set_source(SCT *sct, sct_source_t source) { sct->source = source; + sct->validation_status = SCT_VALIDATION_STATUS_NOT_SET; switch (source) { case SCT_SOURCE_TLS_EXTENSION: case SCT_SOURCE_OCSP_STAPLED_RESPONSE: