r22710: Support one-way trusts.
[samba.git] / source / nsswitch / winbindd_async.c
index 1a68005efc8b8c286d5cd96f3584c188fc9eb28a..b674ef6ceec83ed9d3f76311f54cebdc6e2f157a 100644 (file)
@@ -1494,6 +1494,12 @@ static void query_user_recv(TALLOC_CTX *mem_ctx, BOOL success,
                return;
        }
 
+       if (response->result != WINBINDD_OK) {
+                DEBUG(5, ("query_user returned an error\n"));
+               cont(private_data, False, NULL, NULL, NULL, NULL, -1, -1);
+               return;
+       }
+
        cont(private_data, True, response->data.user_info.acct_name,
             response->data.user_info.full_name,
             response->data.user_info.homedir,