aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to 'g10')
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/mainproc.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index f9a3d0745..70e3e17ba 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+Thu Dec 16 10:07:58 CET 1999 Werner Koch <[email protected]>
+
+ * mainproc.c (print_failed_pkenc): Fix for unknown algorithm.
+ Found by [email protected].
+
Thu Dec 9 10:31:05 CET 1999 Werner Koch <[email protected]>
* hkp.c: i18n the strings.
diff --git a/g10/mainproc.c b/g10/mainproc.c
index 23b483f8a..cf57440c7 100644
--- a/g10/mainproc.c
+++ b/g10/mainproc.c
@@ -268,6 +268,8 @@ print_failed_pkenc( struct kidlist_item *list )
PKT_public_key *pk = m_alloc_clear( sizeof *pk );
const char *algstr = pubkey_algo_to_string( list->pubkey_algo );
+ if( !algstr )
+ algstr = "[?]";
pk->pubkey_algo = list->pubkey_algo;
if( !get_pubkey( pk, list->kid ) ) {
size_t n;