git.samba.org
/
kai
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libnbt: Add an explicit "mem_ctx" to name_request_send
[kai/samba-autobuild/.git]
/
libcli
/
nbt
/
nbtsocket.c
diff --git
a/libcli/nbt/nbtsocket.c
b/libcli/nbt/nbtsocket.c
index 711e39cbdc5a08c7714eda137dd8a2f5eb8d3b25..94ec4627d801bd1e371ff0821ddd385646026075 100644
(file)
--- a/
libcli/nbt/nbtsocket.c
+++ b/
libcli/nbt/nbtsocket.c
@@
-367,7
+367,8
@@
failed:
/*
send off a nbt name request
*/
/*
send off a nbt name request
*/
-struct nbt_name_request *nbt_name_request_send(struct nbt_name_socket *nbtsock,
+struct nbt_name_request *nbt_name_request_send(TALLOC_CTX *mem_ctx,
+ struct nbt_name_socket *nbtsock,
struct socket_address *dest,
struct nbt_name_packet *request,
int timeout, int retries,
struct socket_address *dest,
struct nbt_name_packet *request,
int timeout, int retries,
@@
-377,7
+378,7
@@
struct nbt_name_request *nbt_name_request_send(struct nbt_name_socket *nbtsock,
int id;
enum ndr_err_code ndr_err;
int id;
enum ndr_err_code ndr_err;
- req = talloc_zero(
nbtsock
, struct nbt_name_request);
+ req = talloc_zero(
mem_ctx
, struct nbt_name_request);
if (req == NULL) goto failed;
req->nbtsock = nbtsock;
if (req == NULL) goto failed;
req->nbtsock = nbtsock;