>From a93c760ea90b40866c736d74163520bd3ca58606 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 22 May 2013 17:03:33 +0200 Subject: [PATCH 1/4] IPA: Check for ENOMEM --- src/providers/ipa/ipa_subdomains.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index 98fc69f14d62d74fb82b0f067307362e819aa82c..95a11198a99aa60e93a1f5af18c88ff918dcd53a 100644 --- a/src/providers/ipa/ipa_subdomains.c +++ b/src/providers/ipa/ipa_subdomains.c @@ -216,6 +216,9 @@ static errno_t ipa_subdom_store(struct sss_domain_info *domain, int ret; tmp_ctx = talloc_new(domain); + if (tmp_ctx == NULL) { + return ENOMEM; + } ret = sysdb_attrs_get_string(attrs, IPA_CN, &name); if (ret != EOK) { -- 1.8.2.1