From 121c28e9e9d3dca9d4c37d7935abeb5657e19b78 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 28 Jul 2016 11:08:43 +0200 Subject: [PATCH] Fix `DNSProtoBufMessage::toDebugString()` without protobuf support Fixes #4240. --- pdns/protobuf.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pdns/protobuf.cc b/pdns/protobuf.cc index 248fd608d..d04fa2540 100644 --- a/pdns/protobuf.cc +++ b/pdns/protobuf.cc @@ -151,6 +151,8 @@ std::string DNSProtoBufMessage::toDebugString() const { #ifdef HAVE_PROTOBUF return d_message.DebugString(); +#else + return std::string(); #endif /* HAVE_PROTOBUF */ } -- 2.49.0