From 172fc2c42716c45ea02626ca8a31703e4dd89b33 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Sat, 6 Sep 2014 13:09:47 -0400 Subject: [PATCH] Fix some OPENSSL_PUT_ERROR calls. Change-Id: I6a49eb5225208eed160f9bce7cb9af5145ae0df1 Reviewed-on: https://boringssl-review.googlesource.com/1754 Reviewed-by: Adam Langley --- ssl/t1_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index b9553a55..eccf8750 100644 --- a/ssl/t1_lib.c +++ b/ssl/t1_lib.c @@ -1783,7 +1783,7 @@ static int ssl_scan_clienthello_tlsext(SSL *s, CBS *cbs, int *out_alert) !(s->options & SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION)) { *out_alert = SSL_AD_HANDSHAKE_FAILURE; - OPENSSL_PUT_ERROR(SSL, ssl_add_serverhello_tlsext, SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED); + OPENSSL_PUT_ERROR(SSL, ssl_scan_clienthello_tlsext, SSL_R_UNSAFE_LEGACY_RENEGOTIATION_DISABLED); return 0; } /* If no signature algorithms extension set default values */ @@ -2193,7 +2193,7 @@ static int ssl_check_serverhello_tlsext(SSL *s) } if (!found_uncompressed) { - OPENSSL_PUT_ERROR(SSL, ssl_add_serverhello_tlsext, SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST); + OPENSSL_PUT_ERROR(SSL, ssl_check_serverhello_tlsext, SSL_R_TLS_INVALID_ECPOINTFORMAT_LIST); return -1; } }