s3:smbd: restore the 3.0.x bahavior of send_nt_replies()
authorStefan Metzmacher <metze@samba.org>
Wed, 1 Jul 2009 10:56:30 +0000 (12:56 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 2 Jul 2009 07:10:59 +0000 (09:10 +0200)
We should also set the error code, when we return no parameters or data.

metze

source3/smbd/nttrans.c

index 04767bf5590d8c5ca574b053a06812beb39cf284..a08414d0b051c84eeac10173eb27358fa4a38832 100644 (file)
@@ -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;
        }