s3:winbindd: make sure cm_prepare_connection() only returns OK with a valid tree...
[sfrench/samba-autobuild/.git] / source3 / winbindd / winbindd_getpwsid.c
index efea3fd2b362f9958d66d7c0b666504b92c00e9c..52481700756e8ef0931542c95924e0c88ffd4dbf 100644 (file)
@@ -70,8 +70,7 @@ static void winbindd_getpwsid_done(struct tevent_req *subreq)
 
        status = wb_getpwsid_recv(subreq);
        TALLOC_FREE(subreq);
-       if (!NT_STATUS_IS_OK(status)) {
-               tevent_req_nterror(req, status);
+       if (tevent_req_nterror(req, status)) {
                return;
        }
        tevent_req_done(req);