diff options
author | Russ Allbery <rra@stanford.edu> | 2007-10-05 02:58:47 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2007-10-05 02:58:47 +0000 |
commit | dbd33500b645f9caaa6dbb7d18a3f4932b53847a (patch) | |
tree | 29ccd775f40db8b862e1a6c9851c503cfa0e503b /client/wallet.c | |
parent | f21fba65f194ff26bf72e23f0db311314529720b (diff) |
The wallet client now automatically sets the sync attribute on a keytab
object when get is called with the -S flag.
Diffstat (limited to 'client/wallet.c')
-rw-r--r-- | client/wallet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/wallet.c b/client/wallet.c index 5e23503..9aa2cee 100644 --- a/client/wallet.c +++ b/client/wallet.c @@ -129,10 +129,9 @@ main(int argc, char *argv[]) if (strcmp(argv[0], "get") == 0 && strcmp(argv[1], "keytab") == 0) { if (argc > 3) die("too many arguments"); - get_keytab(r, type, argv[2], file); - if (srvtab != NULL) - write_srvtab(srvtab, argv[2], file); - exit(0); + status = get_keytab(r, type, argv[2], file, srvtab); + remctl_close(r); + exit(status); } else { command = xmalloc(sizeof(char *) * (argc + 2)); command[0] = type; @@ -140,6 +139,7 @@ main(int argc, char *argv[]) command[i + 1] = argv[i]; command[argc + 1] = NULL; status = run_command(r, command, NULL, NULL); + remctl_close(r); exit(status); } |