From e55a7077e6526b53b23e2343165006652026de50 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 14 Dec 2005 19:04:45 +0000 Subject: r12240: if the caller isn't interessted in the reply packet, just free it (mostly use for send_only requests, where we don't have a reply at all) metze (This used to be commit a01d5a769c63777232aad89f8c4b5460824ca2b1) --- source4/libcli/wrepl/winsrepl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/libcli') diff --git a/source4/libcli/wrepl/winsrepl.c b/source4/libcli/wrepl/winsrepl.c index f8e51d925f..adb2f09469 100644 --- a/source4/libcli/wrepl/winsrepl.c +++ b/source4/libcli/wrepl/winsrepl.c @@ -505,7 +505,7 @@ NTSTATUS wrepl_request_recv(struct wrepl_request *req, struct wrepl_packet **packet) { NTSTATUS status = wrepl_request_wait(req); - if (NT_STATUS_IS_OK(status)) { + if (NT_STATUS_IS_OK(status) && packet) { *packet = talloc_steal(mem_ctx, req->packet); } talloc_free(req); -- cgit