-
-
Notifications
You must be signed in to change notification settings - Fork 214
Closed
Description
if (eth_if == nullptr) { |
Per default an object is created via arduino::EthernetClass Ethernet;
. In this case the eth_if
member got initialized (which is a pointer).
But when user creates his own object and passes a null pointer for EthernetInterface()
arduino::EthernetClass Ethernet(nullptr);
Several calls to other public functions, will directly call/access the null pointer.
eth_if->get_emac().set_hwaddr(mac); |
eth_if->set_dhcp(false); |
return (eth_if->get_connection_status() == NSAPI_STATUS_GLOBAL_UP ? LinkON : LinkOFF); |
eth_if->disconnect(); |
Metadata
Metadata
Assignees
Labels
No labels