s3: Fix bug 7730 -- crash in winbindd_dsgetdcname.c
[samba.git] / source3 / winbindd / wb_dsgetdcname.c
index 994d14e264422075299c02e7f50f596c97e2760a..1334eb9d1b3b885a324a56bc4f226839d7c0d874 100644 (file)
@@ -97,6 +97,10 @@ static void wb_dsgetdcname_done(struct tevent_req *subreq)
                tevent_req_nterror(req, status);
                return;
        }
+       if (!NT_STATUS_IS_OK(result)) {
+               tevent_req_nterror(req, result);
+               return;
+       }
        tevent_req_done(req);
 }