Remove some dead code in kdb5_stash() left behind by r24142
authorGreg Hudson <ghudson@mit.edu>
Tue, 22 Jun 2010 13:09:58 +0000 (13:09 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 22 Jun 2010 13:09:58 +0000 (13:09 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24144 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/dbutil/kdb5_stash.c

index 0da44ac4a40195609fa98a82adba8cfeb550c9f2..b09c9dc176dcb0e9583aafe399d49c8869c173b3 100644 (file)
@@ -77,13 +77,9 @@ kdb5_stash(argc, argv)
     extern int optind;
     int optchar;
     krb5_error_code retval;
-    char *dbname = (char *) NULL;
-    char *mkey_name = 0;
     char *keyfile = 0;
     krb5_kvno mkey_kvno;
 
-    dbname = global_params.dbname;
-    mkey_name = global_params.mkey_name;
     keyfile = global_params.stash_file;
 
     optind = 1;
@@ -145,11 +141,6 @@ kdb5_stash(argc, argv)
         exit_status++; return;
     }
 
-    if (retval) {
-        com_err(progname, retval, "closing database '%s'", dbname);
-        exit_status++; return;
-    }
-
     exit_status = 0;
     return;
 }