* pkclist.c (do_edit_ownertrust): Don't allow ownertrust level 0.
authorDavid Shaw <dshaw@jabberwocky.com>
Fri, 5 Aug 2005 02:03:12 +0000 (02:03 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Fri, 5 Aug 2005 02:03:12 +0000 (02:03 +0000)
Noted by Michael Schierl.

g10/ChangeLog
g10/pkclist.c

index 1204e72..4f6dd6c 100644 (file)
@@ -1,5 +1,8 @@
 2005-08-04  David Shaw  <dshaw@jabberwocky.com>
 
+       * 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.
 
index 6558f0d..271aba3 100644 (file)
@@ -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;