aboutsummaryrefslogtreecommitdiffstats
path: root/g10/import.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-09-17 10:58:20 +0000
committerWerner Koch <[email protected]>1999-09-17 10:58:20 +0000
commit9caad6d24d015a0c3c35d3939d7899a6382e5d17 (patch)
tree0f0be053c02b73a0d6f44d5442f04f021b911802 /g10/import.c
parentSee ChangeLog: Wed Sep 15 17:57:13 CEST 1999 Werner Koch (diff)
downloadgnupg-9caad6d24d015a0c3c35d3939d7899a6382e5d17.tar.gz
gnupg-9caad6d24d015a0c3c35d3939d7899a6382e5d17.zip
See ChangeLog: Fri Sep 17 12:56:42 CEST 1999 Werner KochV1-0-1
Diffstat (limited to 'g10/import.c')
-rw-r--r--g10/import.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/g10/import.c b/g10/import.c
index 85a45582e..92cd93c24 100644
--- a/g10/import.c
+++ b/g10/import.c
@@ -1124,7 +1124,7 @@ append_uid( KBNODE keyblock, KBNODE node, int *n_sigs,
KBNODE n, n_where=NULL;
assert(node->pkt->pkttype == PKT_USER_ID );
- if( node->next->pkt->pkttype == PKT_USER_ID ) {
+ if( !node->next || node->next->pkt->pkttype == PKT_USER_ID ) {
log_error( _("key %08lX: our copy has no self-signature\n"),
(ulong)keyid[1]);
return G10ERR_GENERAL;
@@ -1177,9 +1177,7 @@ merge_sigs( KBNODE dst, KBNODE src, int *n_sigs,
assert(dst->pkt->pkttype == PKT_USER_ID );
assert(src->pkt->pkttype == PKT_USER_ID );
- /* at least a self signature comes next to the user IDs */
- assert(src->next->pkt->pkttype != PKT_USER_ID );
- if( dst->next->pkt->pkttype == PKT_USER_ID ) {
+ if( !dst->next || dst->next->pkt->pkttype == PKT_USER_ID ) {
log_error( _("key %08lX: our copy has no self-signature\n"),
(ulong)keyid[1]);
return 0;