summaryrefslogtreecommitdiff
path: root/source4/libcli/wrepl
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-12-14 19:04:45 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:47:23 -0500
commite55a7077e6526b53b23e2343165006652026de50 (patch)
treed6e92d98ef92ad1cb783887f66764816ae1b2aa2 /source4/libcli/wrepl
parentbdc2a850daa7f0c4636df7548a748309f95fc417 (diff)
downloadsamba-e55a7077e6526b53b23e2343165006652026de50.tar.gz
samba-e55a7077e6526b53b23e2343165006652026de50.tar.bz2
samba-e55a7077e6526b53b23e2343165006652026de50.zip
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)
Diffstat (limited to 'source4/libcli/wrepl')
-rw-r--r--source4/libcli/wrepl/winsrepl.c2
1 files changed, 1 insertions, 1 deletions
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);