From 5627532b81802c2654ced8edac07f420bd677930 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 22 May 2013 17:03:33 +0200 Subject: IPA: Check for ENOMEM --- src/providers/ipa/ipa_subdomains.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/providers') diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c index 98fc69f1..95a11198 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) { -- cgit