summaryrefslogtreecommitdiff
path: root/source3/libsmb/unexpected.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2018-01-16 15:50:19 +0100
committerJeremy Allison <jra@samba.org>2018-01-24 00:58:17 +0100
commit6a60970306df44ff5676c98899069f867ac77d36 (patch)
treed9fff31bbfd476308964297498280a837e5cbcee /source3/libsmb/unexpected.h
parent45aec7d3a23645998eb97a86a50345c20a8e14dc (diff)
downloadsamba-6a60970306df44ff5676c98899069f867ac77d36.tar.gz
libnmb: Make nb_packet_read_recv return a talloc'ed pkt
This saves a few explicit destructors only doing free_packet() Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/libsmb/unexpected.h')
-rw-r--r--source3/libsmb/unexpected.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/unexpected.h b/source3/libsmb/unexpected.h
index a40a507f6e5..270976b7f65 100644
--- a/source3/libsmb/unexpected.h
+++ b/source3/libsmb/unexpected.h
@@ -43,7 +43,7 @@ NTSTATUS nb_packet_reader_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
struct tevent_req *nb_packet_read_send(TALLOC_CTX *mem_ctx,
struct tevent_context *ev,
struct nb_packet_reader *reader);
-NTSTATUS nb_packet_read_recv(struct tevent_req *req,
+NTSTATUS nb_packet_read_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
struct packet_struct **ppacket);
#endif