summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/sss_krb5.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
index 174b6d9fa..894dd443d 100644
--- a/src/util/sss_krb5.c
+++ b/src/util/sss_krb5.c
@@ -152,7 +152,14 @@ int sss_krb5_verify_keytab_ex(const char *principal, const char *keytab_name,
found = true;
}
free(kt_principal);
- krb5_free_keytab_entry_contents(context, &entry);
+ krberr = krb5_free_keytab_entry_contents(context, &entry);
+ if (krberr) {
+ /* This should never happen. The API docs for this function
+ * specify only success for this function
+ */
+ DEBUG(1,("Could not free keytab entry contents\n"));
+ /* This is non-fatal, so we'll continue here */
+ }
if (found) {
break;