From 5edc4e2a9b0670c972cd183867dc55238df8eeaa Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Mon, 9 Mar 2015 13:58:39 -0700 Subject: [PATCH] Correct three incorrect function names in errors. Thanks to Sean Burford. Change-Id: I4efa352f3e830c4c3761660508a1a8aa927eedf1 Reviewed-on: https://boringssl-review.googlesource.com/3841 Reviewed-by: Adam Langley --- ssl/d1_clnt.c | 2 +- ssl/d1_pkt.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ssl/d1_clnt.c b/ssl/d1_clnt.c index c25b0528..3c3e0b49 100644 --- a/ssl/d1_clnt.c +++ b/ssl/d1_clnt.c @@ -551,7 +551,7 @@ static int dtls1_get_hello_verify(SSL *s) { !CBS_get_u8_length_prefixed(&hello_verify_request, &cookie) || CBS_len(&hello_verify_request) != 0) { al = SSL_AD_DECODE_ERROR; - OPENSSL_PUT_ERROR(SSL, ssl3_get_cert_status, SSL_R_DECODE_ERROR); + OPENSSL_PUT_ERROR(SSL, dtls1_get_hello_verify, SSL_R_DECODE_ERROR); goto f_err; } diff --git a/ssl/d1_pkt.c b/ssl/d1_pkt.c index 0cb0ba45..ba218f5e 100644 --- a/ssl/d1_pkt.c +++ b/ssl/d1_pkt.c @@ -729,7 +729,7 @@ start: /* Alerts may not be fragmented. */ if (rr->length < 2) { al = SSL_AD_DECODE_ERROR; - OPENSSL_PUT_ERROR(SSL, ssl3_read_bytes, SSL_R_BAD_ALERT); + OPENSSL_PUT_ERROR(SSL, dtls1_read_bytes, SSL_R_BAD_ALERT); goto f_err; } @@ -828,7 +828,7 @@ start: if (rr->type == SSL3_RT_HANDSHAKE && !s->in_handshake) { if (rr->length < DTLS1_HM_HEADER_LENGTH) { al = SSL_AD_DECODE_ERROR; - OPENSSL_PUT_ERROR(SSL, ssl3_read_bytes, SSL_R_BAD_HANDSHAKE_RECORD); + OPENSSL_PUT_ERROR(SSL, dtls1_read_bytes, SSL_R_BAD_HANDSHAKE_RECORD); goto f_err; } struct hm_header_st msg_hdr;