git.samba.org
/
rusty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
662e9c0
)
s4:finddcs_cldap: finddcs_cldap_recv() returns NTSTATUS
author
Stefan Metzmacher
<metze@samba.org>
Sat, 22 Oct 2011 01:09:59 +0000
(
03:09
+0200)
committer
Stefan Metzmacher
<metze@samba.org>
Sat, 22 Oct 2011 01:11:57 +0000
(
03:11
+0200)
We need to convert the errno based error to NTSTATUS
before calling tevent_req_error (via tevent_req_nterror).
metze
source4/libcli/finddcs_cldap.c
patch
|
blob
|
history
diff --git
a/source4/libcli/finddcs_cldap.c
b/source4/libcli/finddcs_cldap.c
index 6df15a9b4e80ce8a4cc13554dd7530e7ffd6d773..359ec70c8c5d77be8a02b1953d3719cfa167d8e2 100644
(file)
--- a/
source4/libcli/finddcs_cldap.c
+++ b/
source4/libcli/finddcs_cldap.c
@@
-213,7
+213,12
@@
static void finddcs_cldap_next_server(struct finddcs_cldap_state *state)
state->srv_addresses[state->srv_address_index],
389,
&dest);
- if (tevent_req_error(state->req, ret)) {
+ if (ret == 0) {
+ status = NT_STATUS_OK;
+ } else {
+ status = map_nt_error_from_unix_common(errno);
+ }
+ if (tevent_req_nterror(state->req, status)) {
return;
}