Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2014-07-02 23:24:48 +0400
committerAdam Langley <agl@google.com>2014-07-02 23:46:50 +0400
commit4c852c5363cfe6fa40fa6c1bac05ee94b407730a (patch)
tree83b3effbcc482a45c3914ff4056ca19d74f1833d
parent325b5c36677dd29e6eb64dd5b5991dd8950108ac (diff)
Add missing break statement in ssl3_get_client_hello.
dc9b1411279f02e604367bc56fca8cf2acc9d531 added a default case when importing the patch but accidentally falls through all the time. Change-Id: Ieb9beeb9e3ffcf77f2842841eda7d28a62fe8072 Reviewed-on: https://boringssl-review.googlesource.com/1073 Reviewed-by: Adam Langley <agl@google.com>
-rw-r--r--ssl/s3_srvr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c
index cd041451..9e5fdb53 100644
--- a/ssl/s3_srvr.c
+++ b/ssl/s3_srvr.c
@@ -966,7 +966,9 @@ int ssl3_get_client_hello(SSL *s)
}
}
s->state = SSL3_ST_SR_CLNT_HELLO_D;
+ break;
default:
+ OPENSSL_PUT_ERROR(SSL, ssl3_get_client_hello, SSL_R_UNKNOWN_STATE);
return -1;
}