fix async chained requests
authorStefan Metzmacher <metze@samba.org>
Wed, 28 Apr 2010 15:45:42 +0000 (17:45 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 29 Apr 2010 13:53:16 +0000 (15:53 +0200)
source3/smbd/pipes.c

index 6bf031b721975a85e469c612a44784c859935f98..8c7704aa6d8835df6b2cf8c9f5df65ee928c73f0 100644 (file)
@@ -479,10 +479,12 @@ static void pipe_read_andx_done(struct tevent_req *subreq)
                 state->smb_mincnt, state->smb_maxcnt, (int)nread));
 
  done:
+       req = talloc_move(talloc_tos(), &req);
+
        chain_reply(req);
        /*
         * We must free here as the ownership of req was
         * moved to the connection struct in reply_pipe_read_and_X().
         */
-       TALLOC_FREE(req);
+       //TALLOC_FREE(req);
 }