mirror of
https://github.com/RetroShare/OpenPGP-SDK.git
synced 2026-09-14 11:05:46 +05:00
Fix warning: this statement may fall through
/openpgpsdk/src/openpgpsdk/packet-parse.c:2482: warning: this statement
may fall through [-Wimplicit-fallthrough=]
hashes[n].add(&hashes[n],C.secret_key.salt,OPS_SALT_SIZE);
/openpgpsdk/src/openpgpsdk/packet-parse.c:2484: here
case OPS_S2KS_SIMPLE:
This commit is contained in:
parent
bd2acfd318
commit
9753dfd2c2
@ -2480,7 +2480,7 @@ static int parse_secret_key(ops_region_t *region,ops_parse_info_t *pinfo)
|
||||
{
|
||||
case OPS_S2KS_SALTED:
|
||||
hashes[n].add(&hashes[n],C.secret_key.salt,OPS_SALT_SIZE);
|
||||
// flow through...
|
||||
/* fallthrough */
|
||||
case OPS_S2KS_SIMPLE:
|
||||
hashes[n].add(&hashes[n],(unsigned char*)passphrase,l);
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user