Move a variable declaration to function start. (Fixes the Windows build.) Change-Id: Ibc7e3fe7cee275c8bc24198e996e4f92100ea9fc Reviewed-on: https://boringssl-review.googlesource.com/1642 Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 4722b3e..fafe528 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c
@@ -1695,11 +1695,12 @@ void SSL_get0_signed_cert_timestamp_list(const SSL *ssl, uint8_t **out, size_t *out_len) { + SSL_SESSION *session = ssl->session; + *out_len = 0; *out = NULL; if (ssl->server) return; - SSL_SESSION *session = ssl->session; if (!session || !session->tlsext_signed_cert_timestamp_list) return; *out = session->tlsext_signed_cert_timestamp_list;