s4:smb_server/smb: remove a request from the list before adding the next one in a...
authorStefan Metzmacher <metze@samba.org>
Mon, 19 Mar 2012 22:52:25 +0000 (23:52 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 2 Apr 2012 19:26:07 +0000 (21:26 +0200)
metze

source4/smb_server/smb/receive.c

index 8e3bab800065ded80595bccf6a3ea054691418ab..b100757b551e5382aa6782205c2c51b0d832053f 100644 (file)
@@ -633,6 +633,7 @@ void smbsrv_chain_reply(struct smbsrv_request *req)
        SSVAL(req->out.vwv, VWV(1), req->out.size - NBT_HDR_SIZE);
 
        /* cleanup somestuff for the next request */
+       DLIST_REMOVE(req->smb_conn->requests, req);
        talloc_free(req->ntvfs);
        req->ntvfs = NULL;
        talloc_free(req->io_ptr);