summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-21 17:51:36 +0200
committerGünther Deschner <gd@samba.org>2008-04-21 20:21:39 +0200
commit1eca3f138c9368116a405f3871d39884375af0dd (patch)
treef5ce598e32cab4777c6043e0744bcfb81d274217 /source3/libsmb
parent6db1eba547d7d57335de517a895b77e17eb25e30 (diff)
downloadsamba-1eca3f138c9368116a405f3871d39884375af0dd.tar.gz
samba-1eca3f138c9368116a405f3871d39884375af0dd.tar.bz2
samba-1eca3f138c9368116a405f3871d39884375af0dd.zip
winbind: pass down existing talloc context.
Guenther (This used to be commit 675bf42cfff89b05f21d77ca74eba20c4a24d44c)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clidgram.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c
index fed5fc0a14..83e50e553d 100644
--- a/source3/libsmb/clidgram.c
+++ b/source3/libsmb/clidgram.c
@@ -126,7 +126,8 @@ static const char *mailslot_name(TALLOC_CTX *mem_ctx, struct in_addr dc_ip)
NBT_MAILSLOT_GETDC, dc_ip.s_addr);
}
-bool send_getdc_request(struct messaging_context *msg_ctx,
+bool send_getdc_request(TALLOC_CTX *mem_ctx,
+ struct messaging_context *msg_ctx,
struct sockaddr_storage *dc_ss,
const char *domain_name,
const DOM_SID *sid)
@@ -139,7 +140,6 @@ bool send_getdc_request(struct messaging_context *msg_ctx,
enum ndr_err_code ndr_err;
DATA_BLOB blob;
struct dom_sid my_sid;
- TALLOC_CTX *mem_ctx = talloc_tos();
ZERO_STRUCT(packet);
ZERO_STRUCT(my_sid);
@@ -193,14 +193,14 @@ bool send_getdc_request(struct messaging_context *msg_ctx,
dc_ss);
}
-bool receive_getdc_response(struct sockaddr_storage *dc_ss,
+bool receive_getdc_response(TALLOC_CTX *mem_ctx,
+ struct sockaddr_storage *dc_ss,
const char *domain_name,
const char **dc_name)
{
struct packet_struct *packet;
const char *my_mailslot = NULL;
struct in_addr dc_ip;
- TALLOC_CTX *mem_ctx = talloc_tos();
DATA_BLOB blob;
struct nbt_ntlogon_packet r;
union dgram_message_body p;