From 408ede11976ddb232bb7387e19db158f1acfe255 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 29 Jun 2016 17:04:46 +0200 Subject: [PATCH] dnsdist: Fix a buffer overflow when displaying an OpcodeRule Thanks clang for the warning! --- pdns/dnsrulactions.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsrulactions.hh b/pdns/dnsrulactions.hh index 9d47c4dd52..3df610b938 100644 --- a/pdns/dnsrulactions.hh +++ b/pdns/dnsrulactions.hh @@ -323,7 +323,7 @@ public: } string toString() const override { - return "opcode=="+d_opcode; + return "opcode=="+std::to_string(d_opcode); } private: uint8_t d_opcode; -- 2.47.2