From 52775bc91acb5ce25dd5e8c8e474a74e69de097c Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Sat, 4 Apr 2020 13:23:17 +0200 Subject: removed debug printout in dns_parse_packet --- src/dns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 || -- cgit v1.2.3