From: Ben Laurie Date: Sun, 19 Apr 2015 13:30:56 +0000 (+0100) Subject: u_len may be unused. X-Git-Tag: OpenSSL_1_1_0-pre1~1226 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=dc2a1af86abbd0e464f952250c749d37e009eead;p=oweals%2Fopenssl.git u_len may be unused. Reviewed-by: Andy Polyakov --- diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c index b7d43f3543..0ed82f727e 100644 --- a/ssl/record/rec_layer_s3.c +++ b/ssl/record/rec_layer_s3.c @@ -445,10 +445,10 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) unsigned int n, nw; #if !defined(OPENSSL_NO_MULTIBLOCK) && EVP_CIPH_FLAG_TLS1_1_MULTIBLOCK unsigned int max_send_fragment; + unsigned int u_len = (unsigned int)len; #endif SSL3_BUFFER *wb = &s->rlayer.wbuf; int i; - unsigned int u_len = (unsigned int)len; if (len < 0) { SSLerr(SSL_F_SSL3_WRITE_BYTES, SSL_R_SSL_NEGATIVE_LENGTH);