summaryrefslogtreecommitdiffstats
path: root/src/clients
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2010-09-30 15:53:44 +0000
committerGreg Hudson <ghudson@mit.edu>2010-09-30 15:53:44 +0000
commit5fac4b5b3c63d64c0e9b463d6ea01f6b494f5822 (patch)
tree01548a8e5e53ac400df7048aaf6be5bd7390423d /src/clients
parent681d4c4cf70f98b7f140bfa79042d65db1f389c1 (diff)
downloadkrb5-5fac4b5b3c63d64c0e9b463d6ea01f6b494f5822.tar.gz
krb5-5fac4b5b3c63d64c0e9b463d6ea01f6b494f5822.tar.xz
krb5-5fac4b5b3c63d64c0e9b463d6ea01f6b494f5822.zip
Whitespace and minor style changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24390 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/clients')
-rw-r--r--src/clients/kpasswd/kpasswd.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/clients/kpasswd/kpasswd.c b/src/clients/kpasswd/kpasswd.c
index fc91bddef3..3a50aba31e 100644
--- a/src/clients/kpasswd/kpasswd.c
+++ b/src/clients/kpasswd/kpasswd.c
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
- the name corresponding to the ruid of the process
otherwise, it's an error.
- We always attempt to open the default ccache in order to use FAST if
+ We always attempt to open the default ccache in order to use FAST if
possible.
*/
ret = krb5_cc_default(context, &ccache);
@@ -94,12 +94,13 @@ int main(int argc, char *argv[])
com_err(argv[0], ret, "getting principal from ccache");
exit(1);
} else {
- if (princ != NULL)
- ret = krb5_get_init_creds_opt_set_fast_ccache(context, opts, ccache);
- else ret = 0;
- if (ret) {
- com_err(argv[0], ret, "while setting default ccache name");
- exit(1);
+ if (princ != NULL) {
+ ret = krb5_get_init_creds_opt_set_fast_ccache(context, opts,
+ ccache);
+ if (ret) {
+ com_err(argv[0], ret, "while setting FAST ccache");
+ exit(1);
+ }
}
}
ret = krb5_cc_close(context, ccache);