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>
Sat, 5 Mar 2011 13:34:32 +0000 (14:34 +0100)
(cherry picked from commit f1b04a210074546d4e4347b62b4f7f5b879454d9)

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);
 }