diff options
Diffstat (limited to 'src/responder/common')
-rw-r--r-- | src/responder/common/responder_get_domains.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/responder/common/responder_get_domains.c b/src/responder/common/responder_get_domains.c index 702593f6..6b92bbe2 100644 --- a/src/responder/common/responder_get_domains.c +++ b/src/responder/common/responder_get_domains.c @@ -244,6 +244,12 @@ static errno_t get_domains_done(struct tevent_req *req) goto done; } + if (subdomain_count == 0) { + talloc_zfree(domain->subdomains); + domain->subdomain_count = 0; + goto done; + } + new_sd_list = talloc_zero_array(domain, struct sss_domain_info *, subdomain_count); if (new_sd_list == NULL) { |