summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-05-22 17:03:33 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-05-28 15:11:32 +0200
commit5627532b81802c2654ced8edac07f420bd677930 (patch)
treee3622ae2298f5871ad923663e097ad99bf3b79e6 /src/providers
parent3bd78eb2faf09635b8d307e4440ccb1420f80716 (diff)
downloadsssd-5627532b81802c2654ced8edac07f420bd677930.tar.gz
sssd-5627532b81802c2654ced8edac07f420bd677930.tar.bz2
sssd-5627532b81802c2654ced8edac07f420bd677930.zip
IPA: Check for ENOMEM
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_subdomains.c3
1 files changed, 3 insertions, 0 deletions
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) {