git.samba.org
/
nivanova
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40ae8b7
)
s3:winbindd: don't ignore 'result' in wb_dsgetdcname_done()
author
Stefan Metzmacher
<metze@samba.org>
Tue, 17 Aug 2010 06:02:46 +0000
(08:02 +0200)
committer
Volker 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
patch
|
blob
|
history
diff --git
a/source3/winbindd/wb_dsgetdcname.c
b/source3/winbindd/wb_dsgetdcname.c
index 220813573413b5deadf77f62416221105768f3f8..71aecfe97deae2b86fa9a5f9273c17bc274a02af 100644
(file)
--- 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);
}