diff options
author | Andy Polyakov <appro@openssl.org> | 2014-07-07 17:02:26 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2014-07-07 17:02:26 +0200 |
commit | c4f8efab34af95a5319bbc5b954b62614604298a (patch) | |
tree | 0019499373026a707fbe56c17689b9047c24bc4d /apps/speed.c | |
parent | 07b635cceb60abaddba2f0e469e5f5978258f46b (diff) |
apps/speed.c: fix compiler warnings in multiblock_speed().
Diffstat (limited to 'apps/speed.c')
-rw-r--r-- | apps/speed.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/speed.c b/apps/speed.c index 6201a84985..ac320eadee 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -3013,14 +3013,15 @@ static void multiblock_speed(const EVP_CIPHER *evp_cipher) for (count=0,run=1; run && count<0x7fffffff; count++) { unsigned char aad[13]; - EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM mb_param = {NULL,aad,sizeof(aad),0}; + EVP_CTRL_TLS1_1_MULTIBLOCK_PARAM mb_param; size_t len = mblengths[j]; int packlen; - aad[8] = 23; - aad[9] = 3; + memset(aad,0,8);/* avoid uninitialized values */ + aad[8] = 23; /* SSL3_RT_APPLICATION_DATA */ + aad[9] = 3; /* version */ aad[10] = 2; - aad[11] = 0; + aad[11] = 0; /* length */ aad[12] = 0; mb_param.out = NULL; mb_param.inp = aad; |