summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-08-17 08:02:46 +0200
committerVolker Lendecke <vl@samba.org>2010-08-17 12:46:53 +0200
commitaca7b22e96482bdd90e59973e25dc41690969bab (patch)
tree675775712758a600145c590e0815854f46549b40 /source3/winbindd
parent40ae8b74b669ced9dee0c33e15bc5e0ac8680506 (diff)
downloadsamba-aca7b22e96482bdd90e59973e25dc41690969bab.tar.gz
samba-aca7b22e96482bdd90e59973e25dc41690969bab.tar.bz2
samba-aca7b22e96482bdd90e59973e25dc41690969bab.zip
s3:winbindd: don't ignore 'result' in wb_dsgetdcname_done()
Ignoring it could cause a segfault in winbindd_getdcname_recv() metze
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/wb_dsgetdcname.c4
1 files changed, 4 insertions, 0 deletions
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);
}