Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 363725a4 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android (Google) Code Review
Browse files

Merge "Use dhcp netmask value rather than its pointer (patch from Marvell)"

parents 17a5252f 6d956cc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ int decode_dhcp_msg(dhcp_msg *msg, int len, dhcp_info *info)
        }
        switch(opt) {
        case OPT_SUBNET_MASK:
            if (optlen >= 4) info->prefixLength = ipv4NetmaskToPrefixLength((int)x);
            if (optlen >= 4) info->prefixLength = ipv4NetmaskToPrefixLength(*((uint32_t*)x));
            break;
        case OPT_GATEWAY:
            if (optlen >= 4) memcpy(&info->gateway, x, 4);