From: Stefan Metzmacher Date: Wed, 1 Jul 2009 10:56:30 +0000 (+0200) Subject: s3:smbd: restore the 3.0.x bahavior of send_nt_replies() X-Git-Tag: talloc-2.0.0~813 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d73bc83c1921e2659dba27a0afc0b71a1760a5ca;p=thirdparty%2Fsamba.git 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 --- diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index 04767bf5590..a08414d0b05 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; }