aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 4b0fd1c2b..259447738 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -1842,7 +1842,7 @@ parse_key( IOBUF inp, int pkttype, unsigned long pktlen,
}
snlen = iobuf_get (inp);
pktlen--;
- if (pktlen < snlen || snlen == -1) {
+ if (pktlen < snlen || snlen == (size_t)(-1)) {
rc = G10ERR_INVALID_PACKET;
goto leave;
}