File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1150,7 +1150,7 @@ pgp_pk_sesskey_t::parse(pgp_source_t &src)
11501150 return RNP_ERROR_BAD_FORMAT;
11511151 }
11521152 fp.length = fp_len;
1153- if (fp.length && (fp.length != fp_and_key_ver_len - 1 )) {
1153+ if (fp.length && (fp.length != ( unsigned )( fp_and_key_ver_len - 1 ) )) {
11541154 RNP_LOG (" size mismatch (fingerprint size and fp+key version length field)" );
11551155 return RNP_ERROR_BAD_FORMAT;
11561156 }
@@ -1261,7 +1261,7 @@ pgp_pk_sesskey_t::parse_material(pgp_encrypted_material_t &material)
12611261 if ((version == PGP_PKSK_V3) && !do_encrypt_pkesk_v3_alg_id (alg)) {
12621262 if (!pkt.get (bt)) {
12631263 RNP_LOG (" failed to get salg" );
1264- return RNP_ERROR_BAD_FORMAT ;
1264+ return false ;
12651265 }
12661266 enc_sesskey_len -= 1 ;
12671267 salg = (pgp_symm_alg_t ) bt;
@@ -1302,7 +1302,7 @@ pgp_pk_sesskey_t::parse_material(pgp_encrypted_material_t &material)
13021302 if ((version == PGP_PKSK_V3) && !do_encrypt_pkesk_v3_alg_id (alg)) {
13031303 if (!pkt.get (bt)) {
13041304 RNP_LOG (" failed to get salg" );
1305- return RNP_ERROR_BAD_FORMAT ;
1305+ return false ;
13061306 }
13071307 salg = (pgp_symm_alg_t ) bt;
13081308 wrapped_key_len--;
You can’t perform that action at this time.
0 commit comments