diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-12-05 20:17:36 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-12-19 12:17:37 -0600 |
commit | d701c6ab4220a3f5e0fdef06720816d67c46f56d (patch) | |
tree | 2027cc0c02345f11652b09cc8eeae795ffc52b53 /lib/mbedtls/sha256.c | |
parent | b6691d0add999459393a19f0f02b66243ee2a4ae (diff) |
net: lwip: check if network device is available in do_dhcp
eth_get_dev() returns NULL if no network device is available.
Not checking the return value leads to a crash when the device
pointer is dereferenced.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
Diffstat (limited to 'lib/mbedtls/sha256.c')
0 files changed, 0 insertions, 0 deletions