diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-22 17:03:33 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-05-28 15:11:32 +0200 |
commit | 5627532b81802c2654ced8edac07f420bd677930 (patch) | |
tree | e3622ae2298f5871ad923663e097ad99bf3b79e6 /src | |
parent | 3bd78eb2faf09635b8d307e4440ccb1420f80716 (diff) | |
download | sssd-5627532b81802c2654ced8edac07f420bd677930.tar.gz sssd-5627532b81802c2654ced8edac07f420bd677930.tar.bz2 sssd-5627532b81802c2654ced8edac07f420bd677930.zip |
IPA: Check for ENOMEM
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ipa/ipa_subdomains.c | 3 |
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) { |