Suspicious use of & (part 2)

This commit is contained in:
Francois Perrad 2017-02-24 18:10:08 +01:00 committed by Karel Miko
parent 824f3af98c
commit 4349993ad3
2 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ int adler32_test(void)
adler32_state ctx;
adler32_init(&ctx);
adler32_update(&ctx, in, strlen(in));
adler32_finish(&ctx, &out, 4);
adler32_finish(&ctx, out, 4);
if (XMEMCMP(adler32, out, 4)) {
#ifdef LTC_TEST_DBG
ulong32 _out, _adler32;

View File

@ -108,7 +108,7 @@ int ecc_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, co
/* find out what type of key it is */
if ((err = der_decode_sequence_multi(in, inlen,
LTC_ASN1_BIT_STRING, 1UL, &flags,
LTC_ASN1_BIT_STRING, 1UL, flags,
LTC_ASN1_EOL, 0UL, NULL)) != CRYPT_OK) {
goto done;
}