File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1134,7 +1134,7 @@ pgp_pk_sesskey_t::parse(pgp_source_t &src)
1134
1134
return RNP_ERROR_BAD_FORMAT;
1135
1135
}
1136
1136
fp.length = fp_len;
1137
- if (fp.length && (fp.length != fp_and_key_ver_len - 1 )) {
1137
+ if (fp.length && (fp.length != ( unsigned )( fp_and_key_ver_len - 1 ) )) {
1138
1138
RNP_LOG (" size mismatch (fingerprint size and fp+key version length field)" );
1139
1139
return RNP_ERROR_BAD_FORMAT;
1140
1140
}
@@ -1245,7 +1245,7 @@ pgp_pk_sesskey_t::parse_material(pgp_encrypted_material_t &material)
1245
1245
if ((version == PGP_PKSK_V3) && !do_encrypt_pkesk_v3_alg_id (alg)) {
1246
1246
if (!pkt.get (bt)) {
1247
1247
RNP_LOG (" failed to get salg" );
1248
- return RNP_ERROR_BAD_FORMAT ;
1248
+ return false ;
1249
1249
}
1250
1250
enc_sesskey_len -= 1 ;
1251
1251
salg = (pgp_symm_alg_t ) bt;
@@ -1286,7 +1286,7 @@ pgp_pk_sesskey_t::parse_material(pgp_encrypted_material_t &material)
1286
1286
if ((version == PGP_PKSK_V3) && !do_encrypt_pkesk_v3_alg_id (alg)) {
1287
1287
if (!pkt.get (bt)) {
1288
1288
RNP_LOG (" failed to get salg" );
1289
- return RNP_ERROR_BAD_FORMAT ;
1289
+ return false ;
1290
1290
}
1291
1291
salg = (pgp_symm_alg_t ) bt;
1292
1292
wrapped_key_len--;
You can’t perform that action at this time.
0 commit comments