From 3dd3c4cd013dadd1a1f57ac3e0750018dc5a0698 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 15 Aug 2007 16:58:29 +0000 Subject: r24464: Now Volker removed the readbmpx we don't need cached errors any more. Jeremy. (This used to be commit 9256ec0a20f532c7dd7ddc2d3534336a47e6c2d2) --- source3/smbd/close.c | 1 - source3/smbd/error.c | 16 ---------------- 2 files changed, 17 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 9718fef4ea..30220ce4de 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -102,7 +102,6 @@ static NTSTATUS close_filestruct(files_struct *fsp) } conn->num_files_open--; - SAFE_FREE(fsp->wbmpx_ptr); return status; } diff --git a/source3/smbd/error.c b/source3/smbd/error.c index dd9ff85640..74029a2b05 100644 --- a/source3/smbd/error.c +++ b/source3/smbd/error.c @@ -24,22 +24,6 @@ extern struct unix_error_map unix_dos_nt_errmap[]; extern uint32 global_client_caps; -/**************************************************************************** - Create an error packet from a cached error. -****************************************************************************/ - -int cached_error_packet(const char *inbuf,char *outbuf,files_struct *fsp,int line,const char *file) -{ - write_bmpx_struct *wbmpx = fsp->wbmpx_ptr; - int32 eclass = wbmpx->wr_errclass; - int32 err = wbmpx->wr_error; - NTSTATUS ntstatus = wbmpx->wr_status; - - /* We can now delete the auxiliary struct */ - SAFE_FREE(fsp->wbmpx_ptr); - return error_packet(inbuf,outbuf,eclass,err,ntstatus,line,file); -} - /**************************************************************************** Create an error packet from errno. ****************************************************************************/ -- cgit