From dfc9573a6ee19eb5e12fdc845b498b287fc60d62 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 9 Oct 2009 10:01:29 -0700 Subject: [PATCH] Fix bug 6774 - smbd crashes if "aio write behind" is set. Don't dereference a talloc_move'd pointer. Jeremy. --- source3/smbd/aio.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index e5e522c..ab98675 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -299,7 +299,7 @@ bool schedule_aio_write_and_X(connection_struct *conn, show_msg(aio_ex->outbuf); if (!srv_send_smb(smbd_server_fd(),aio_ex->outbuf, IS_CONN_ENCRYPTED(fsp->conn), - &req->pcd)) { + &aio_ex->req->pcd)) { exit_server_cleanly("handle_aio_write: srv_send_smb " "failed."); } -- 1.5.4.3