s3:winbindd: don't ignore 'result' in wb_dsgetdcname_done()
authorStefan Metzmacher <metze@samba.org>
Tue, 17 Aug 2010 06:02:46 +0000 (08:02 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 17 Aug 2010 10:46:53 +0000 (12:46 +0200)
Ignoring it could cause a segfault in winbindd_getdcname_recv()

metze

source3/winbindd/wb_dsgetdcname.c

index 220813573413b5deadf77f62416221105768f3f8..71aecfe97deae2b86fa9a5f9273c17bc274a02af 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);
 }