Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork219
Closed
Description
| if (eth_if ==nullptr) { |
Per default an object is created viaarduino::EthernetClass Ethernet;. In this case theeth_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