aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2002-06-14 22:07:14 +0000
committerDavid Shaw <[email protected]>2002-06-14 22:07:14 +0000
commit9b506bab88fdfe9225a46bf810820de5fdafbaa2 (patch)
tree73620160630dac12ad3b00d2debacda7d9fc3af1
parent* pkclist.c (expand_id, expand_group, build_pk_list): Groups now work (diff)
downloadgnupg-9b506bab88fdfe9225a46bf810820de5fdafbaa2.tar.gz
gnupg-9b506bab88fdfe9225a46bf810820de5fdafbaa2.zip
* free-packet.c (copy_signature): Properly copy a signature that carries a
revocation key on it.
-rw-r--r--g10/ChangeLog3
-rw-r--r--g10/free-packet.c8
2 files changed, 9 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 6af94beb7..2703fe34e 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,5 +1,8 @@
2002-06-14 David Shaw <[email protected]>
+ * free-packet.c (copy_signature): Properly copy a signature that
+ carries a revocation key on it.
+
* pkclist.c (expand_id, expand_group, build_pk_list): Groups now
work properly when used in the "Enter the user ID" prompt.
diff --git a/g10/free-packet.c b/g10/free-packet.c
index f13882d3e..e760999be 100644
--- a/g10/free-packet.c
+++ b/g10/free-packet.c
@@ -215,6 +215,12 @@ copy_signature( PKT_signature *d, PKT_signature *s )
}
d->hashed = cp_subpktarea (s->hashed);
d->unhashed = cp_subpktarea (s->unhashed);
+ if(s->numrevkeys)
+ {
+ d->revkey=NULL;
+ d->numrevkeys=0;
+ parse_revkeys(d);
+ }
return d;
}
@@ -539,5 +545,3 @@ cmp_user_ids( PKT_user_id *a, PKT_user_id *b )
return res;
}
-
-