Don't defer a talloc_move'd pointer.
authorJeremy Allison <jra@samba.org>
Tue, 29 Sep 2009 04:36:15 +0000 (21:36 -0700)
committerJeremy Allison <jra@samba.org>
Tue, 29 Sep 2009 04:36:15 +0000 (21:36 -0700)
Jeremy.

source3/smbd/aio.c

index ed415c5e1304a7b4c6adb87c92c9852139425f4a..c0367a5ee813ab57d78176b0cfd582dbd29d027d 100644 (file)
@@ -295,7 +295,7 @@ bool schedule_aio_write_and_X(connection_struct *conn,
                if (!srv_send_smb(smbd_server_fd(),aio_ex->outbuf,
                                true, aio_ex->req->seqnum+1,
                                IS_CONN_ENCRYPTED(fsp->conn),
-                               &req->pcd)) {
+                               &aio_ex->req->pcd)) {
                        exit_server_cleanly("handle_aio_write: srv_send_smb "
                                            "failed.");
                }