aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/ChangeLog3
-rw-r--r--g10/pkclist.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index 1204e7246..4f6dd6c44 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,5 +1,8 @@
2005-08-04 David Shaw <[email protected]>
+ * pkclist.c (do_edit_ownertrust): Don't allow ownertrust level 0.
+ Noted by Michael Schierl.
+
* keygen.c (write_keyblock): Don't try and build deleted kbnodes
since we start our tree with one.
diff --git a/g10/pkclist.c b/g10/pkclist.c
index 6558f0d6a..271aba3ba 100644
--- a/g10/pkclist.c
+++ b/g10/pkclist.c
@@ -182,7 +182,7 @@ do_edit_ownertrust (PKT_public_key *pk, int mode,
switch(minimum)
{
- default: min_num=0; break;
+ default:
case TRUST_UNDEFINED: min_num=1; break;
case TRUST_NEVER: min_num=2; break;
case TRUST_MARGINAL: min_num=3; break;