summaryrefslogtreecommitdiffstats
path: root/util/ipa_krb5.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/ipa_krb5.c')
-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;
}