summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_async.c3
-rw-r--r--source3/winbindd/winbindd_user.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/source3/winbindd/winbindd_async.c b/source3/winbindd/winbindd_async.c
index 56175e2659..f53875f617 100644
--- a/source3/winbindd/winbindd_async.c
+++ b/source3/winbindd/winbindd_async.c
@@ -382,7 +382,8 @@ void winbindd_lookupname_async(TALLOC_CTX *mem_ctx,
struct winbindd_domain *domain;
struct lookupname_state *s;
- if ( (domain = find_lookup_domain_from_name(dom_name)) == NULL ) {
+ domain = find_lookup_domain_from_name(dom_name);
+ if (domain == NULL) {
DEBUG(5, ("Could not find domain for name '%s'\n", dom_name));
cont(private_data, False, NULL, SID_NAME_UNKNOWN);
return;
diff --git a/source3/winbindd/winbindd_user.c b/source3/winbindd/winbindd_user.c
index 2d59942e17..0967afcf5c 100644
--- a/source3/winbindd/winbindd_user.c
+++ b/source3/winbindd/winbindd_user.c
@@ -462,8 +462,10 @@ void winbindd_getpwnam(struct winbindd_cli_state *state)
if (domain == NULL) {
DEBUG(7, ("could not find domain entry for domain %s. "
"Using primary domain\n", domname));
- if ( (domain = find_our_domain()) == NULL ) {
- DEBUG(0,("Cannot find my primary domain structure!\n"));
+ domain = find_our_domain();
+ if (domain == NULL) {
+ DEBUG(0, ("Cannot find my primary domain "
+ "structure!\n"));
request_error(state);
return;
}