summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
047b8ed)
Author: noodles
Date: 2003/09/30 17:40:41
Fix stupid bug with read_openpgp_stream and an empty packet list.
*
* Copyright 2002 Project Purple
*
*
* Copyright 2002 Project Purple
*
- * $Id: parsekey.c,v 1.11 2003/09/30 16:58:04 noodles Exp $
+ * $Id: parsekey.c,v 1.12 2003/09/30 17:40:41 noodles Exp $
assert(packets != NULL);
curpacket = *packets;
assert(packets != NULL);
curpacket = *packets;
- while (curpacket->next != NULL) {
- curpacket = curpacket->next;
+ if (curpacket != NULL) {
+ while (curpacket->next != NULL) {
+ curpacket = curpacket->next;
+ }
}
while (!rc && !getchar_func(ctx, 1, &curchar)) {
}
while (!rc && !getchar_func(ctx, 1, &curchar)) {