aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-04-04 13:23:17 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-04-04 13:23:17 +0200
commit52775bc91acb5ce25dd5e8c8e474a74e69de097c (patch)
treeaf38072cc0343f2c74f213b6ad05002a31f74473
parent8a2428001ceaf62ecb7cdff42da8cd84484f424c (diff)
downloaddns-52775bc91acb5ce25dd5e8c8e474a74e69de097c.tar.gz
removed debug printout in dns_parse_packet
-rw-r--r--src/dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dns.c b/src/dns.c
index 1716b45..14f84ea 100644
--- a/src/dns.c
+++ b/src/dns.c
@@ -73,11 +73,11 @@ int dns_parse_packet ( char* _buffer, int _bufflen, struct dns_message* _msg )
_msg->header.additional_count = (*((uint8_t*) (_buffer + 10)) << 8) | *((uint8_t*) (_buffer + 11));
//TODO remove
- printf("ANSWER %i\n", _msg->header.answer_count);
+ /*printf("ANSWER %i\n", _msg->header.answer_count);
printf("QUESTI %i\n", _msg->header.question_count);
printf("AUTHOR %i\n", _msg->header.authorative_count);
printf("ADDITI %i\n", _msg->header.additional_count);
-
+*/
//Check for sensible QD, AN, NS and ARCOUNTS before massive memory allocation
if( _msg->header.question_count > 4 ||
_msg->header.answer_count > 32 ||