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 @@ -1149,7 +1149,7 @@ pgp_pk_sesskey_t::parse(pgp_source_t &src)
11491149 return RNP_ERROR_BAD_FORMAT;
11501150 }
11511151 fp.length = fp_len;
1152- if (fp.length && (fp.length != fp_and_key_ver_len - 1 )) {
1152+ if (fp.length && (fp.length != ( unsigned )( fp_and_key_ver_len - 1 ) )) {
11531153 RNP_LOG (" size mismatch (fingerprint size and fp+key version length field)" );
11541154 return RNP_ERROR_BAD_FORMAT;
11551155 }
@@ -1260,7 +1260,7 @@ pgp_pk_sesskey_t::parse_material(pgp_encrypted_material_t &material)
12601260 if ((version == PGP_PKSK_V3) && !do_encrypt_pkesk_v3_alg_id (alg)) {
12611261 if (!pkt.get (bt)) {
12621262 RNP_LOG (" failed to get salg" );
1263- return RNP_ERROR_BAD_FORMAT ;
1263+ return false ;
12641264 }
12651265 enc_sesskey_len -= 1 ;
12661266 salg = (pgp_symm_alg_t ) bt;
@@ -1301,7 +1301,7 @@ pgp_pk_sesskey_t::parse_material(pgp_encrypted_material_t &material)
13011301 if ((version == PGP_PKSK_V3) && !do_encrypt_pkesk_v3_alg_id (alg)) {
13021302 if (!pkt.get (bt)) {
13031303 RNP_LOG (" failed to get salg" );
1304- return RNP_ERROR_BAD_FORMAT ;
1304+ return false ;
13051305 }
13061306 salg = (pgp_symm_alg_t ) bt;
13071307 wrapped_key_len--;
You can’t perform that action at this time.
0 commit comments