summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c1
-rw-r--r--source3/smbd/error.c16
2 files changed, 0 insertions, 17 deletions
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
@@ -25,22 +25,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.
****************************************************************************/