From d73bc83c1921e2659dba27a0afc0b71a1760a5ca Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 1 Jul 2009 12:56:30 +0200 Subject: s3:smbd: restore the 3.0.x bahavior of send_nt_replies() We should also set the error code, when we return no parameters or data. metze --- source3/smbd/nttrans.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 04767bf559..a08414d0b0 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -68,6 +68,11 @@ void send_nt_replies(connection_struct *conn, if(params_to_send == 0 && data_to_send == 0) { reply_outbuf(req, 18, 0); + if (NT_STATUS_V(nt_error)) { + error_packet_set((char *)req->outbuf, + 0, 0, nt_error, + __LINE__,__FILE__); + } show_msg((char *)req->outbuf); return; } -- cgit