s3: Fix bug 7730 -- crash in winbindd_dsgetdcname.c
authorVolker Lendecke <vl@samba.org>
Fri, 15 Oct 2010 14:37:47 +0000 (16:37 +0200)
committerKarolin Seeger <kseeger@samba.org>
Thu, 11 Nov 2010 11:09:36 +0000 (12:09 +0100)
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);
 }