Skip to content
Commit 42901f80 authored by Robert Lubos's avatar Robert Lubos Committed by Benjamin Cabé
Browse files

net: dhcpv4: client: Prevent asserting on malformed message



In case the received DHCP message is malformed and contains invalid
message type, the code responsible for matching message type with a
string would assert. This shouldn't be the case that external conditions
(like receiving malformed packet) trigger asserts in the system.
Therefore modify that code, to return "invalid" string in such case
instead.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
(cherry picked from commit f4408c08)
parent 84e8c9fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment