summaryrefslogtreecommitdiffstats
path: root/daemons/ipa-kpasswd
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-06-09 13:40:32 -0400
committerSimo Sorce <ssorce@redhat.com>2009-07-10 09:42:21 -0400
commit24089821fbc738b22f524d4d107d9de458484291 (patch)
tree0a2d343d5b9c7d7f293e4f5e5e3271a94ae4481e /daemons/ipa-kpasswd
parent94181d54fede2d9b98f45f713afe46e5a01fb10c (diff)
downloadfreeipa-24089821fbc738b22f524d4d107d9de458484291.tar.gz
freeipa-24089821fbc738b22f524d4d107d9de458484291.tar.xz
freeipa-24089821fbc738b22f524d4d107d9de458484291.zip
Check error in kpasswd
Diffstat (limited to 'daemons/ipa-kpasswd')
-rw-r--r--daemons/ipa-kpasswd/ipa_kpasswd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/daemons/ipa-kpasswd/ipa_kpasswd.c b/daemons/ipa-kpasswd/ipa_kpasswd.c
index f2d3490f9..a8ec286e0 100644
--- a/daemons/ipa-kpasswd/ipa_kpasswd.c
+++ b/daemons/ipa-kpasswd/ipa_kpasswd.c
@@ -181,7 +181,8 @@ static int get_krb5_ticket(char *tmp_file)
krb5_principal kprincpw;
krb5_creds my_creds;
krb5_get_init_creds_opt options;
- int krberr, ret;
+ krb5_error_code krberr;
+ int ret;
krberr = krb5_init_context(&context);
if (krberr) {
@@ -255,7 +256,7 @@ static int get_krb5_ticket(char *tmp_file)
goto done;
}
- krb5_cc_initialize(context, ccache, kprincpw);
+ krberr = krb5_cc_initialize(context, ccache, kprincpw);
if (krberr) {
syslog(LOG_ERR, "Failed to init ccache: %s",
krb5_get_error_message(context, krberr));