aboutsummaryrefslogtreecommitdiffstats
path: root/g10/parse-packet.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-06-17 11:18:26 +0000
committerWerner Koch <[email protected]>2009-06-17 11:18:26 +0000
commitc998dd12a2dd0bd219ce0a68bdd9fcf82bb1c70e (patch)
tree11be2c0a6cb5cd0fee8ff31436d72f56074fda40 /g10/parse-packet.c
parentUse cancel button in confirmation only if requested. (diff)
downloadgnupg-c998dd12a2dd0bd219ce0a68bdd9fcf82bb1c70e.tar.gz
gnupg-c998dd12a2dd0bd219ce0a68bdd9fcf82bb1c70e.zip
Preparing for 2.0.12.gnupg-2.0.12
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r--g10/parse-packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c
index 324ab5e2e..a86e54981 100644
--- a/g10/parse-packet.c
+++ b/g10/parse-packet.c
@@ -501,8 +501,8 @@ parse( IOBUF inp, PACKET *pkt, int onlykeypkts, off_t *retpos,
}
}
- if (pktlen == 0xffffffff) {
- /* with a some probability this is caused by a problem in the
+ if (pktlen == (unsigned long)(-1)) {
+ /* With some probability this is caused by a problem in the
* the uncompressing layer - in some error cases it just loops
* and spits out 0xff bytes. */
log_error ("%s: garbled packet detected\n", iobuf_where(inp) );