Index: util/win/exception_handler_server.cc |
diff --git a/util/win/exception_handler_server.cc b/util/win/exception_handler_server.cc |
index 278d6e1dbf2c75f50eeee99a11fb9c3bcb878292..547087e04be714bcf41feda9c791c1bb489dbdfe 100644 |
--- a/util/win/exception_handler_server.cc |
+++ b/util/win/exception_handler_server.cc |
@@ -317,6 +317,12 @@ bool ExceptionHandlerServer::ServiceClientConnection( |
return false; |
} |
+ if (message.registration.version != RegistrationRequest::kMessageVersion) { |
+ LOG(ERROR) << "unexpected version. got: " << message.registration.version |
+ << " expecting: " << RegistrationRequest::kMessageVersion; |
+ return false; |
+ } |
+ |
decltype(GetNamedPipeClientProcessId)* get_named_pipe_client_process_id = |
GetNamedPipeClientProcessIdFunction(); |
if (get_named_pipe_client_process_id) { |