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