diff options
Diffstat (limited to 'src/lib/libssl/ssl_tlsext.c')
-rw-r--r-- | src/lib/libssl/ssl_tlsext.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_tlsext.c b/src/lib/libssl/ssl_tlsext.c index 65e53f93be..1f70cb90e6 100644 --- a/src/lib/libssl/ssl_tlsext.c +++ b/src/lib/libssl/ssl_tlsext.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_tlsext.c,v 1.66 2020/05/10 14:07:01 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_tlsext.c,v 1.67 2020/05/10 14:17:48 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2016, 2017, 2019 Joel Sing <jsing@openbsd.org> |
4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> | 4 | * Copyright (c) 2017 Doug Hogan <doug@openbsd.org> |
@@ -922,7 +922,6 @@ int | |||
922 | tlsext_ocsp_client_parse(SSL *s, CBS *cbs, int *alert) | 922 | tlsext_ocsp_client_parse(SSL *s, CBS *cbs, int *alert) |
923 | { | 923 | { |
924 | CBS response; | 924 | CBS response; |
925 | size_t stow_len; | ||
926 | uint16_t version = TLS1_get_client_version(s); | 925 | uint16_t version = TLS1_get_client_version(s); |
927 | uint8_t status_type; | 926 | uint8_t status_type; |
928 | 927 | ||
@@ -944,12 +943,10 @@ tlsext_ocsp_client_parse(SSL *s, CBS *cbs, int *alert) | |||
944 | return 0; | 943 | return 0; |
945 | } | 944 | } |
946 | if (!CBS_stow(&response, &s->internal->tlsext_ocsp_resp, | 945 | if (!CBS_stow(&response, &s->internal->tlsext_ocsp_resp, |
947 | &stow_len)) { | 946 | &s->internal->tlsext_ocsp_resp_len)) { |
948 | s->internal->tlsext_ocsp_resplen = 0; | ||
949 | *alert = SSL_AD_INTERNAL_ERROR; | 947 | *alert = SSL_AD_INTERNAL_ERROR; |
950 | return 0; | 948 | return 0; |
951 | } | 949 | } |
952 | s->internal->tlsext_ocsp_resplen = (int)stow_len; | ||
953 | } else { | 950 | } else { |
954 | if (s->tlsext_status_type == -1) { | 951 | if (s->tlsext_status_type == -1) { |
955 | *alert = TLS1_AD_UNSUPPORTED_EXTENSION; | 952 | *alert = TLS1_AD_UNSUPPORTED_EXTENSION; |