Skip to content

Commit 9af62ce

Browse files
committed
Fix signedness comparison warning.
1 parent ce42e61 commit 9af62ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librepgp/stream-packet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 + 1 != fp_and_key_ver_len)) {
11531153
RNP_LOG("size mismatch (fingerprint size and fp+key version length field)");
11541154
return RNP_ERROR_BAD_FORMAT;
11551155
}

0 commit comments

Comments
 (0)