From ae5195bd5526e7b98678a3c139f3609d37801442 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 26 Jun 2019 23:17:28 +0200 Subject: [PATCH] dnsdist: Keep the buffer's constness when passing it to write() --- pdns/tcpiohandler.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/tcpiohandler.hh b/pdns/tcpiohandler.hh index bc4a85f410..3e7f52b081 100644 --- a/pdns/tcpiohandler.hh +++ b/pdns/tcpiohandler.hh @@ -245,7 +245,7 @@ public: } do { - ssize_t res = ::write(d_socket, reinterpret_cast(&buffer.at(pos)), toWrite - pos); + ssize_t res = ::write(d_socket, reinterpret_cast(&buffer.at(pos)), toWrite - pos); if (res == 0) { throw runtime_error("EOF while sending message"); } -- 2.47.2