summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-07-01 12:56:30 +0200
committerStefan Metzmacher <metze@samba.org>2009-07-02 09:10:59 +0200
commitd73bc83c1921e2659dba27a0afc0b71a1760a5ca (patch)
tree91a246493fe587516116b442922906450dd80c13 /source3/smbd
parentf62a331045581ec706949f79d01951270d8d763b (diff)
downloadsamba-d73bc83c1921e2659dba27a0afc0b71a1760a5ca.tar.gz
samba-d73bc83c1921e2659dba27a0afc0b71a1760a5ca.tar.bz2
samba-d73bc83c1921e2659dba27a0afc0b71a1760a5ca.zip
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
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/nttrans.c5
1 files changed, 5 insertions, 0 deletions
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;
}