diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-04-04 13:23:17 +0200 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-04-04 13:23:17 +0200 |
commit | 52775bc91acb5ce25dd5e8c8e474a74e69de097c (patch) | |
tree | af38072cc0343f2c74f213b6ad05002a31f74473 | |
parent | 8a2428001ceaf62ecb7cdff42da8cd84484f424c (diff) | |
download | dns-52775bc91acb5ce25dd5e8c8e474a74e69de097c.tar.gz |
removed debug printout in dns_parse_packet
-rw-r--r-- | src/dns.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 || |