Avoid dead stores (makes scan-build happier)

parent c0d74941
......@@ -2343,7 +2343,6 @@ static int ssl_parse_certificate_request( mbedtls_ssl_context *ssl )
size_t sig_alg_len = ( ( buf[mbedtls_ssl_hs_hdr_len( ssl ) + 1 + n] << 8 )
| ( buf[mbedtls_ssl_hs_hdr_len( ssl ) + 2 + n] ) );
p = buf + mbedtls_ssl_hs_hdr_len( ssl ) + 3 + n;
m += 2;
n += sig_alg_len;
......
......@@ -1932,8 +1932,6 @@ static void ssl_write_renegotiation_ext( mbedtls_ssl_context *ssl,
p += ssl->verify_data_len;
memcpy( p, ssl->own_verify_data, ssl->verify_data_len );
p += ssl->verify_data_len;
*olen = 5 + ssl->verify_data_len * 2;
}
else
#endif /* MBEDTLS_SSL_RENEGOTIATION */
......@@ -1941,9 +1939,9 @@ static void ssl_write_renegotiation_ext( mbedtls_ssl_context *ssl,
*p++ = 0x00;
*p++ = 0x01;
*p++ = 0x00;
*olen = 5;
}
*olen = p - buf;
}
#if defined(MBEDTLS_SSL_MAX_FRAGMENT_LENGTH)
......@@ -2856,7 +2854,6 @@ curve_matching_done:
MBEDTLS_SSL_DEBUG_BUF( 3, "my signature", p, signature_len );
p += signature_len;
n += signature_len;
}
#endif /* MBEDTLS_KEY_EXCHANGE_DHE_RSA_ENABLED) ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment