Commit 4ec9e110 authored by Alexandre Julliard's avatar Alexandre Julliard

server: Return an error for invalid requests instead of killing the client process.

parent ee48e1e3
......@@ -52,9 +52,12 @@
#include <poll.h>
#endif
#include "ntstatus.h"
#define WIN32_NO_STATUS
#include "windef.h"
#include "winbase.h"
#include "wincon.h"
#include "winternl.h"
#include "wine/library.h"
#include "file.h"
......@@ -277,8 +280,10 @@ static void call_req_handler( struct thread *thread )
if (debug_level) trace_request();
if (req < REQ_NB_REQUESTS)
{
req_handlers[req]( &current->req, &reply );
else
set_error( STATUS_NOT_IMPLEMENTED );
if (current)
{
if (current->reply_fd)
......@@ -291,9 +296,6 @@ static void call_req_handler( struct thread *thread )
else fatal_protocol_error( current, "no reply fd for request %d\n", req );
}
current = NULL;
return;
}
fatal_protocol_error( current, "bad request %d\n", req );
}
/* read a request from a thread */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment