Ethernet icon indicating copy to clipboard operation
Ethernet copied to clipboard

parseDHCPResponse dont exit on endOption [imported]

Open agdl opened this issue 8 years ago • 0 comments

From @cmaglie on November 15, 2012 18:47

This is Issue 715 moved from a Google Code project. Added by 2011-11-17T07:37:03.000Z by [email protected]. Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

parseDHCPResponse do not exit if it read the endOption. If there is more then one dhcp replay, it continue parsing the next one.

--- Dhcp.cpp.orig 2011-11-17 08:34:56.000000000 +0100 +++ Dhcp.cpp 2011-11-17 08:35:34.000000000 +0100 @@ -253,6 +253,8 @@ switch (_dhcpUdpSocket.read()) { case endOption :

  •                _dhcpUdpSocket.flush();
    
  •                return type;
                 break;
    
             case padOption :
    

Copied from original issue: arduino/Arduino#715

agdl avatar Jul 12 '16 13:07 agdl