From 66a42e67f337c04fcbf0725ff0d324afe453bf8c Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Mon, 10 Nov 2014 18:12:52 +0000 Subject: Fix unchecked return value in krb5 common utils https://fedorahosted.org/freeipa/ticket/4713 Reviewed-By: Alexander Bokovoy --- util/ipa_krb5.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util') 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; } -- cgit