diff options
Diffstat (limited to 'source3/smbd/error.c')
-rw-r--r-- | source3/smbd/error.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/error.c b/source3/smbd/error.c index 023e1b7dcc..dd9ff85640 100644 --- a/source3/smbd/error.c +++ b/source3/smbd/error.c @@ -140,6 +140,14 @@ void reply_nt_error(struct smb_request *req, NTSTATUS ntstatus, error_packet_set((char *)req->outbuf, 0, 0, ntstatus, line, file); } +void reply_force_nt_error(struct smb_request *req, NTSTATUS ntstatus, + int line, const char *file) +{ + TALLOC_FREE(req->outbuf); + reply_outbuf(req, 0, 0); + error_packet_set((char *)req->outbuf, -1, -1, ntstatus, line, file); +} + void reply_dos_error(struct smb_request *req, uint8 eclass, uint32 ecode, int line, const char *file) { |