From: Victor Julien Date: Thu, 27 Jun 2013 16:43:22 +0000 (+0200) Subject: DNS: fix warning when debug is not enabled X-Git-Tag: suricata-2.0beta1~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be7e6cdd7aec05ade4ae03529ea3b90895cd47c2;p=thirdparty%2Fsuricata.git DNS: fix warning when debug is not enabled --- diff --git a/src/app-layer-dns-tcp.c b/src/app-layer-dns-tcp.c index f1d0237655..73602dfee5 100644 --- a/src/app-layer-dns-tcp.c +++ b/src/app-layer-dns-tcp.c @@ -134,8 +134,10 @@ static int DNSTCPRequestParseProbe(uint8_t *input, uint32_t input_len) SCLogDebug("input buffer too small for DNSQueryTrailer"); goto insufficient_data; } +#ifdef DEBUG DNSQueryTrailer *trailer = (DNSQueryTrailer *)data; SCLogDebug("trailer type %04x class %04x", ntohs(trailer->type), ntohs(trailer->class)); +#endif data += sizeof(DNSQueryTrailer); }