u_len may be unused.
authorBen Laurie <ben@links.org>
Sun, 19 Apr 2015 13:30:56 +0000 (14:30 +0100)
committerBen Laurie <ben@links.org>
Fri, 1 May 2015 16:46:17 +0000 (17:46 +0100)
Reviewed-by: Andy Polyakov
ssl/record/rec_layer_s3.c

index b7d43f3..0ed82f7 100644 (file)
@@ -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);