From: Matt Caswell Date: Tue, 26 Apr 2016 17:01:24 +0000 (+0100) Subject: split_send_fragment should always be less than or equal to max_send_fragment X-Git-Tag: OpenSSL_1_1_0-pre6~1048 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bfb155c187fbb1e56561614925be5ca4ef069f03;p=oweals%2Fopenssl.git split_send_fragment should always be less than or equal to max_send_fragment A bug meant that SSL_CTRL_SET_MAX_SEND_FRAGMENT was not adjusting split_send_fragment properly. Reviewed-by: Richard Levitte --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 994d093466..f93b98f42f 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -1873,7 +1873,7 @@ long SSL_CTX_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) return 0; ctx->max_send_fragment = larg; if (ctx->max_send_fragment < ctx->split_send_fragment) - ctx->split_send_fragment = ctx->split_send_fragment; + ctx->split_send_fragment = ctx->max_send_fragment; return 1; case SSL_CTRL_SET_SPLIT_SEND_FRAGMENT: if ((unsigned int)larg > ctx->max_send_fragment || larg == 0)