From: Remi Gacogne Date: Wed, 29 Jun 2016 15:04:46 +0000 (+0200) Subject: dnsdist: Fix a buffer overflow when displaying an OpcodeRule X-Git-Tag: rec-4.0.0~35^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F4069%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Fix a buffer overflow when displaying an OpcodeRule Thanks clang for the warning! --- 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;