From: Remi Gacogne Date: Mon, 21 Jan 2019 15:07:29 +0000 (+0100) Subject: rec: Fix compilation in handleRunningTCPQuestion without protobuf support X-Git-Tag: rec-4.1.10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F7403%2Fhead;p=thirdparty%2Fpdns.git rec: Fix compilation in handleRunningTCPQuestion without protobuf support --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index d92b1ffaeb..98232dca29 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1535,6 +1535,9 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var) L<data; + #ifdef HAVE_PROTOBUF if(luaconfsLocal->protobufServer || luaconfsLocal->outgoingProtobufServer) { dc->d_requestorId = requestorId; @@ -1542,7 +1545,6 @@ static void handleRunningTCPQuestion(int fd, FDMultiplexer::funcparam_t& var) dc->d_uuid = (*t_uuidGenerator)(); } - const struct dnsheader* dh = (const struct dnsheader*) conn->data; if(luaconfsLocal->protobufServer) { try {