summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorliuxueli <[email protected]>2019-06-18 16:27:03 +0800
committerliuxueli <[email protected]>2019-06-18 16:27:03 +0800
commit3aa2724870fbbe2c30cae617041f63b3c959fc6e (patch)
tree200e987078c2bab83e6e4b4c6a2a6a96dad1b815 /test
parentbf5348317d59ad8a2a665227e98e204313222281 (diff)
修复test编译错误
Diffstat (limited to 'test')
-rw-r--r--test/src/dns_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/src/dns_test.c b/test/src/dns_test.c
index 8c219be..5c1bc36 100644
--- a/test/src/dns_test.c
+++ b/test/src/dns_test.c
@@ -58,7 +58,7 @@ int rr_print(dns_info_t *dns_info, struct streaminfo *a_udp, int thread_seq, voi
fwrite(dns_header, used_len, 1, fp);
- for(i = 0; i < dns_info->hdr_info.qdcount && dns_info->query_question[i]!=NULL; i++)
+ for(i = 0; i < dns_info->hdr_info.qdcount && (&dns_info->query_question[i])!=NULL; i++)
{
used_len = snprintf(question, sizeof(question), "question: <qtype: %d, qclass: %d, qname: %s>\n",
dns_info->query_question[i].qtype,