URL: https://github.com/SSSD/sssd/pull/34
Title: #34: cache_req: move from switch to plugins
pbrezina commented:
"""
Updated patch pushed. Diff:
```c
diff --git a/src/responder/common/cache_req/cache_req_search.c
b/src/responder/common/cache_req/cache_req_search.c
index 3c11efd..a36a900 100644
--- a/src/responder/common/cache_req/cache_req_search.c
+++ b/src/responder/common/cache_req/cache_req_search.c
@@ -102,7 +102,7 @@ static errno_t cache_req_search_cache(TALLOC_CTX *mem_ctx,
cr->debugobj);
ret = cr->plugin->lookup_fn(mem_ctx, cr, cr->data, cr->domain, &result);
- if (ret == EOK && result != NULL && result->count == 0) {
+ if (ret == EOK && (result == NULL || result->count == 0)) {
ret = ENOENT;
}
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/34#issuecomment-254139867
_______________________________________________
sssd-devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]