diff options
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/ad/ad_access.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/providers/ad/ad_access.c b/src/providers/ad/ad_access.c index c16f04942..6995172db 100644 --- a/src/providers/ad/ad_access.c +++ b/src/providers/ad/ad_access.c @@ -169,12 +169,20 @@ ad_parse_access_filter(TALLOC_CTX *mem_ctx, int flags; TALLOC_CTX *tmp_ctx; + if (_filter == NULL) return EINVAL; + tmp_ctx = talloc_new(mem_ctx); if (tmp_ctx == NULL) { ret = ENOMEM; goto done; } + if (filter_list == NULL) { + *_filter = NULL; + ret = EOK; + goto done; + } + ret = split_on_separator(tmp_ctx, filter_list, '?', true, true, &filters, &nfilters); if (ret != EOK) { |