aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-08-05 02:03:12 +0000
committerDavid Shaw <[email protected]>2005-08-05 02:03:12 +0000
commitc765d1ee0cd92852b59b212211689205f7e6f235 (patch)
tree3b8a92f6adf0cb53253c9fd38c4124476f2a3453
parent* keygen.c (write_keyblock): Don't try and build deleted kbnodes since (diff)
downloadgnupg-c765d1ee0cd92852b59b212211689205f7e6f235.tar.gz
gnupg-c765d1ee0cd92852b59b212211689205f7e6f235.zip
* pkclist.c (do_edit_ownertrust): Don't allow ownertrust level 0.
Noted by Michael Schierl.
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;