From: Remi Gacogne Date: Wed, 26 Jun 2019 21:17:28 +0000 (+0200) Subject: dnsdist: Keep the buffer's constness when passing it to write() X-Git-Tag: dnsdist-1.4.0-rc1~88^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae5195bd5526e7b98678a3c139f3609d37801442;p=thirdparty%2Fpdns.git dnsdist: Keep the buffer's constness when passing it to write() --- 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"); }