lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #8692] Fix for assertion fails in dns.c if no DNS se


From: Sylvain Rochet
Subject: [lwip-devel] [patch #8692] Fix for assertion fails in dns.c if no DNS server is configured
Date: Mon, 22 Jun 2015 09:45:55 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.0.1

URL:
  <http://savannah.nongnu.org/patch/?8692>

                 Summary: Fix for assertion fails in dns.c if no DNS server is
configured
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: gradator
            Submitted on: Mon 22 Jun 2015 09:45:53 AM GMT
                Category: DNS
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: goldsimon
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

From: Michael Waeber

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




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 22 Jun 2015 09:45:54 AM GMT  Name: dns.patch  Size: 2kB   By:
gradator

<http://savannah.nongnu.org/patch/download.php?file_id=34288>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?8692>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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