summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-09-10 10:07:51 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-10 17:32:33 +0200
commitc1f94194a9fee8582a0af3b151b4f2b14fa1019a (patch)
treede1326803521719f93bcf8baebf13cf91cf7ae5c
parentfbc419b2eb101c7491324499a698b6bdcb14ad43 (diff)
downloadsssd-c1f94194a9fee8582a0af3b151b4f2b14fa1019a.tar.gz
sssd-c1f94194a9fee8582a0af3b151b4f2b14fa1019a.tar.bz2
sssd-c1f94194a9fee8582a0af3b151b4f2b14fa1019a.zip
krb5: Fix warning sometimes uninitialized
warning: variable 'ret' is used uninitialized whenever 'if' condition is false if (kerr) { ^~~~
-rw-r--r--src/providers/krb5/krb5_utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/providers/krb5/krb5_utils.c b/src/providers/krb5/krb5_utils.c
index bb933d7f..d0968735 100644
--- a/src/providers/krb5/krb5_utils.c
+++ b/src/providers/krb5/krb5_utils.c
@@ -851,6 +851,8 @@ static errno_t sss_destroy_ccache(struct sss_krb5_ccache *cc)
KRB5_DEBUG(SSSDBG_OP_FAILURE, cc->context, kerr);
DEBUG(SSSDBG_CRIT_FAILURE, ("krb5_cc_destroy failed.\n"));
ret = EIO;
+ } else {
+ ret = EOK;
}
/* krb5_cc_destroy frees cc->ccache in all events */