未验证 提交 e1d519af 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2387 from liqiuhua/patch-1

Update dns.c
...@@ -666,7 +666,6 @@ dns_check_entry(u8_t i) ...@@ -666,7 +666,6 @@ dns_check_entry(u8_t i)
pEntry->numdns++; pEntry->numdns++;
pEntry->tmr = 1; pEntry->tmr = 1;
pEntry->retries = 0; pEntry->retries = 0;
break;
} else { } else {
LWIP_DEBUGF(DNS_DEBUG, ("dns_check_entry: \"%s\": timeout\n", pEntry->name)); LWIP_DEBUGF(DNS_DEBUG, ("dns_check_entry: \"%s\": timeout\n", pEntry->name));
/* call specified callback function if provided */ /* call specified callback function if provided */
...@@ -678,9 +677,10 @@ dns_check_entry(u8_t i) ...@@ -678,9 +677,10 @@ dns_check_entry(u8_t i)
break; break;
} }
} }
else {
/* wait longer for the next retry */ /* wait longer for the next retry */
pEntry->tmr = pEntry->retries; pEntry->tmr = pEntry->retries;
}
/* send DNS packet for this entry */ /* send DNS packet for this entry */
err = dns_send(pEntry->numdns, pEntry->name, i); err = dns_send(pEntry->numdns, pEntry->name, i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册