aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-09-03 23:24:03 +0000
committerDavid Shaw <[email protected]>2003-09-03 23:24:03 +0000
commitff4b6613a995a403e458dbcc11c6d1e1fae8af1f (patch)
treef7855846fd008233c042a90cfa04f5e647f388d7
parent* NEWS: Note --list-options, --verify-options, the deprecation of (diff)
downloadgnupg-ff4b6613a995a403e458dbcc11c6d1e1fae8af1f.tar.gz
gnupg-ff4b6613a995a403e458dbcc11c6d1e1fae8af1f.zip
* keyedit.c (show_key_with_all_names): Fix assertion failure when using
toggle to see a secret key. Reported by Maxim Britov.
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/keyedit.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 7b78ae913..19bb82148 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2003-09-03 David Shaw <[email protected]>
+
+ * keyedit.c (show_key_with_all_names): Fix assertion failure when
+ using toggle to see a secret key. Reported by Maxim Britov.
+
2003-08-31 David Shaw <[email protected]>
* g10.c (add_keyserver_url), keyedit.c (keyedit_menu), sign.c
diff --git a/g10/keyedit.c b/g10/keyedit.c
index 043cdba5e..d9506d721 100644
--- a/g10/keyedit.c
+++ b/g10/keyedit.c
@@ -2129,8 +2129,6 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
}
}
- assert(primary);
-
/* the user ids */
i = 0;
for( node = keyblock; node; node = node->next ) {
@@ -2138,7 +2136,7 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
PKT_user_id *uid = node->pkt->pkt.user_id;
++i;
if( !only_marked || (only_marked && (node->flag & NODFLG_MARK_A))){
- if(opt.list_options&LIST_SHOW_VALIDITY)
+ if(opt.list_options&LIST_SHOW_VALIDITY && primary)
tty_printf("[%8.8s] ",
trust_value_to_string(get_validity(primary,uid)));
if( only_marked )