summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2008-05-21 14:29:20 +1000
committerAndrew Bartlett <abartlet@samba.org>2008-05-21 14:29:20 +1000
commit3a29c33e821b78cad8b586c944fd182d363eda93 (patch)
tree62c49d7005f17c9861ff08b912cab50bf6c70ba2 /source4
parent5cc4b9d13e5b27d2004a1c16de335cbac570b92e (diff)
downloadsamba-3a29c33e821b78cad8b586c944fd182d363eda93.tar.gz
samba-3a29c33e821b78cad8b586c944fd182d363eda93.tar.bz2
samba-3a29c33e821b78cad8b586c944fd182d363eda93.zip
Fix creation of sockaddr in netlogon datagram generator.
The previous code sent uninitialised data, and was the wrong length. Andrew Bartlett (This used to be commit 8e070293cfd522b7464be5bc4d8045572d6d996c)
Diffstat (limited to 'source4')
-rw-r--r--source4/cldap_server/netlogon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/cldap_server/netlogon.c b/source4/cldap_server/netlogon.c
index bca965781a..f263f33d48 100644
--- a/source4/cldap_server/netlogon.c
+++ b/source4/cldap_server/netlogon.c
@@ -319,7 +319,7 @@ NTSTATUS fill_netlogon_samlogon_response(struct ldb_context *sam_ctx,
extra_flags = NETLOGON_NT_VERSION_5EX_WITH_IP;
netlogon->nt5_ex.sockaddr.sa_family = 2;
netlogon->nt5_ex.sockaddr.pdc_ip = pdc_ip;
- netlogon->nt5_ex.sockaddr.remaining = data_blob_talloc(mem_ctx, NULL, 4);
+ netlogon->nt5_ex.sockaddr.remaining = data_blob_talloc_zero(mem_ctx, 8);
}
netlogon->nt5_ex.nt_version = NETLOGON_NT_VERSION_1|NETLOGON_NT_VERSION_5EX|extra_flags;
netlogon->nt5_ex.lmnt_token = 0xFFFF;