Blame SOURCES/0001-Fix-for-issues-found-by-Coverity.patch
|
|
f441eb |
From 3c93c96eb6ea2abd3869921ee4c89e1a4d9e4c44 Mon Sep 17 00:00:00 2001
|
|
|
f441eb |
From: Sumit Bose <sbose@redhat.com>
|
|
|
f441eb |
Date: Tue, 14 Aug 2018 13:08:52 +0200
|
|
|
f441eb |
Subject: [PATCH] Fix for issues found by Coverity
|
|
|
f441eb |
|
|
|
f441eb |
---
|
|
|
f441eb |
library/adenroll.c | 12 ++++++------
|
|
|
f441eb |
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
f441eb |
|
|
|
f441eb |
diff --git a/library/adenroll.c b/library/adenroll.c
|
|
|
f441eb |
index 02bd9e3..de2242a 100644
|
|
|
f441eb |
--- a/library/adenroll.c
|
|
|
f441eb |
+++ b/library/adenroll.c
|
|
|
f441eb |
@@ -1575,7 +1575,7 @@ load_host_keytab (adcli_enroll *enroll)
|
|
|
f441eb |
}
|
|
|
f441eb |
|
|
|
f441eb |
krb5_free_context (k5);
|
|
|
f441eb |
- return ADCLI_SUCCESS;
|
|
|
f441eb |
+ return res;
|
|
|
f441eb |
}
|
|
|
f441eb |
|
|
|
f441eb |
typedef struct {
|
|
|
f441eb |
@@ -1756,12 +1756,12 @@ add_principal_to_keytab (adcli_enroll *enroll,
|
|
|
f441eb |
enroll->kvno, &password, enctypes, &salts[*which_salt]);
|
|
|
f441eb |
|
|
|
f441eb |
free_principal_salts (k5, salts);
|
|
|
f441eb |
+ }
|
|
|
f441eb |
|
|
|
f441eb |
- if (code != 0) {
|
|
|
f441eb |
- _adcli_err ("Couldn't add keytab entries: %s: %s",
|
|
|
f441eb |
- enroll->keytab_name, krb5_get_error_message (k5, code));
|
|
|
f441eb |
- return ADCLI_ERR_FAIL;
|
|
|
f441eb |
- }
|
|
|
f441eb |
+ if (code != 0) {
|
|
|
f441eb |
+ _adcli_err ("Couldn't add keytab entries: %s: %s",
|
|
|
f441eb |
+ enroll->keytab_name, krb5_get_error_message (k5, code));
|
|
|
f441eb |
+ return ADCLI_ERR_FAIL;
|
|
|
f441eb |
}
|
|
|
f441eb |
|
|
|
f441eb |
|
|
|
f441eb |
--
|
|
|
f441eb |
2.21.0
|
|
|
f441eb |
|