summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-31 16:53:14 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-31 17:33:53 +1100
commitde9485784867a7a68207e42fe2a021de01e54904 (patch)
treea5cbe4065200ede9b87fc6fde5152dbffc1c2efd /source4
parent9d6411d9dd2ef4bca247d41708bb6b0d0d14389a (diff)
downloadsamba-de9485784867a7a68207e42fe2a021de01e54904.tar.gz
samba-de9485784867a7a68207e42fe2a021de01e54904.tar.bz2
samba-de9485784867a7a68207e42fe2a021de01e54904.zip
s4-net: fixed finddcs to use empty SID instead of NULL sid (NDR error)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/finddcs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libcli/finddcs.c b/source4/libcli/finddcs.c
index 8330042ea1..04b25d37ef 100644
--- a/source4/libcli/finddcs.c
+++ b/source4/libcli/finddcs.c
@@ -158,6 +158,9 @@ static void finddcs_name_resolved(struct composite_context *ctx)
if (composite_nomem(state->r.in.my_accountname, state->ctx)) return;
state->r.in.account_control = ACB_WSTRUST;
state->r.in.domain_sid = state->domain_sid;
+ if (state->r.in.domain_sid == NULL) {
+ state->r.in.domain_sid = talloc_zero(state, struct dom_sid);
+ }
ireq = irpc_call_send(state->msg_ctx, nbt_servers[0],
&ndr_table_irpc, NDR_NBTD_GETDCNAME,