lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Assertion fails in dns.c after PPP interface is down


From: Michael Waeber
Subject: [lwip-devel] Assertion fails in dns.c after PPP interface is down
Date: Wed, 10 Jun 2015 16:21:09 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

If the ppp netif is shut down, e.g. because of a GPRS connection loss,
the DNS server address is set to the unspecified address (0.0.0.0) in
ppp.c cdns(). If a client application calls dns_gethostbyname() the
assertion in dns_send() is triggered:

>  LWIP_ASSERT("dns server has no IP address set",
!ip_addr_isany(&dns_servers[entry->server_idx]));

I think, if no DNS server is configured, dns_gethostbyname() should
succeed with "not found". Proposal patch attached.

Regards
Michael


Attachment: dns.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]