summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cd62908)
Author: noodles
Date: 2003/10/03 23:24:16
Fix stupid ordering bug with checking we're under the requested number of keys
in read_openpgp_stream.
*
* Copyright 2002 Project Purple
*
*
* Copyright 2002 Project Purple
*
- * $Id: parsekey.c,v 1.14 2003/09/30 21:59:33 noodles Exp $
+ * $Id: parsekey.c,v 1.15 2003/10/03 23:24:16 noodles Exp $
- while (!rc && !getchar_func(ctx, 1, &curchar) &&
- (maxnum == 0 || keys < maxnum)) {
+ while (!rc && (maxnum == 0 || keys < maxnum) &&
+ !getchar_func(ctx, 1, &curchar)) {
if (!inpacket && (curchar & 0x80)) {
/*
* New packet. Record the fact we're in a packet and
if (!inpacket && (curchar & 0x80)) {
/*
* New packet. Record the fact we're in a packet and