summaryrefslogtreecommitdiffstats
path: root/remoting
diff options
context:
space:
mode:
Diffstat (limited to 'remoting')
-rw-r--r--remoting/host/gnubby_socket.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/remoting/host/gnubby_socket.cc b/remoting/host/gnubby_socket.cc
index 09d5d30..40cb7d4 100644
--- a/remoting/host/gnubby_socket.cc
+++ b/remoting/host/gnubby_socket.cc
@@ -4,6 +4,7 @@
#include "remoting/host/gnubby_socket.h"
+#include "base/macros.h"
#include "base/timer/timer.h"
#include "net/socket/stream_listen_socket.h"
@@ -75,7 +76,7 @@ void GnubbySocket::SendResponse(const std::string& response_data) {
void GnubbySocket::SendSshError() {
DCHECK(CalledOnValidThread());
- SendResponse(kSshError);
+ SendResponse(std::string(kSshError, arraysize(kSshError)));
}
bool GnubbySocket::IsSocket(net::StreamListenSocket* socket) const {