diff options
Diffstat (limited to 'source/smbd/error.c')
-rw-r--r-- | source/smbd/error.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/smbd/error.c b/source/smbd/error.c index 2f993fb41ef..6de16f1d5b9 100644 --- a/source/smbd/error.c +++ b/source/smbd/error.c @@ -1,5 +1,6 @@ /* - Unix SMB/CIFS implementation. + Unix SMB/Netbios implementation. + Version 1.9. error packet handling Copyright (C) Andrew Tridgell 1992-1998 @@ -39,8 +40,7 @@ int cached_error_packet(char *outbuf,files_struct *fsp,int line,const char *file int32 err = wbmpx->wr_error; /* We can now delete the auxiliary struct */ - free((char *)wbmpx); - fsp->wbmpx_ptr = NULL; + SAFE_FREE(wbmpx); return error_packet(outbuf,NT_STATUS_OK,eclass,err,line,file); } @@ -107,7 +107,7 @@ int error_packet(char *outbuf,NTSTATUS ntstatus, file, line, (int)CVAL(outbuf,smb_com), smb_fn_name(CVAL(outbuf,smb_com)), - nt_errstr(ntstatus))); + get_nt_error_msg(ntstatus))); return outsize; } |