aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-02-15 15:43:28 +0000
committerMatt Caswell <matt@openssl.org>2016-03-07 21:39:28 +0000
commit0707741532b6f5f6c03a6016bd41cbc7f9e2cc7a (patch)
tree66005e9a48f39cac5896b1c7c08017557161e234
parentfd068d50c4e19b6e860a303a6bec1c1803f5465e (diff)
downloadopenssl-0707741532b6f5f6c03a6016bd41cbc7f9e2cc7a.zip
openssl-0707741532b6f5f6c03a6016bd41cbc7f9e2cc7a.tar.gz
openssl-0707741532b6f5f6c03a6016bd41cbc7f9e2cc7a.tar.bz2
Fix erroneous fall thgrough in switch statement
Fix an erroenous fall through when setting the max_pipelines value. Reviewed-by: Tim Hudson <tjh@openssl.org>
-rw-r--r--ssl/ssl_lib.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index 89d2286..13f4ccd 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -1716,6 +1716,7 @@ long SSL_ctrl(SSL *s, int cmd, long larg, void *parg)
s->max_pipelines = larg;
if (larg > 1)
RECORD_LAYER_set_read_ahead(&s->rlayer, 1);
+ return 1;
case SSL_CTRL_GET_RI_SUPPORT:
if (s->s3)
return s->s3->send_connection_binding;
@@ -1867,6 +1868,7 @@ long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg)
if (larg < 1 || larg > SSL_MAX_PIPELINES)
return 0;
ctx->max_pipelines = larg;
+ return 1;
case SSL_CTRL_CERT_FLAGS:
return (ctx->cert->cert_flags |= larg);
case SSL_CTRL_CLEAR_CERT_FLAGS: