From aca7b22e96482bdd90e59973e25dc41690969bab Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 17 Aug 2010 08:02:46 +0200 Subject: s3:winbindd: don't ignore 'result' in wb_dsgetdcname_done() Ignoring it could cause a segfault in winbindd_getdcname_recv() metze --- source3/winbindd/wb_dsgetdcname.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/winbindd') diff --git a/source3/winbindd/wb_dsgetdcname.c b/source3/winbindd/wb_dsgetdcname.c index 2208135734..71aecfe97d 100644 --- a/source3/winbindd/wb_dsgetdcname.c +++ b/source3/winbindd/wb_dsgetdcname.c @@ -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); } -- cgit