summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2014-11-10 18:12:52 +0000
committerJan Cholasta <jcholast@redhat.com>2014-11-25 08:23:24 +0000
commit66a42e67f337c04fcbf0725ff0d324afe453bf8c (patch)
treeb20bc618d77e17cf8bf29aa321e7d73e4982cfef /util
parent47a08f34980053400e1b52f016546b13a8626bd7 (diff)
downloadfreeipa-66a42e67f337c04fcbf0725ff0d324afe453bf8c.tar.gz
freeipa-66a42e67f337c04fcbf0725ff0d324afe453bf8c.tar.xz
freeipa-66a42e67f337c04fcbf0725ff0d324afe453bf8c.zip
Fix unchecked return value in krb5 common utils
https://fedorahosted.org/freeipa/ticket/4713 Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/ipa_krb5.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/ipa_krb5.c b/util/ipa_krb5.c
index 6334ed3b0..feb23eae9 100644
--- a/util/ipa_krb5.c
+++ b/util/ipa_krb5.c
@@ -730,6 +730,10 @@ struct berval *create_key_control(struct keys_container *keys,
if (ksdata[i].salttype == NO_SALT) {
ret = ber_printf(be, "}");
+ if (ret == -1) {
+ ber_free(be, 1);
+ return NULL;
+ }
continue;
}