mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #11975 from michalpasztamobica/pppinterface_pointer_checks
PPPinterface: remove faulty address getter check for invalid pointerpull/12078/head
commit
34c9cf93e5
|
@ -94,10 +94,6 @@ const char *PPPInterface::get_ip_address()
|
|||
|
||||
nsapi_error_t PPPInterface::get_ip_address(SocketAddress *address)
|
||||
{
|
||||
if (address) {
|
||||
return NSAPI_ERROR_PARAMETER;
|
||||
}
|
||||
|
||||
if (_interface && _interface->get_ip_address(address) == NSAPI_ERROR_OK) {
|
||||
strncpy(_ip_address, address->get_ip_address(), sizeof(_ip_address));
|
||||
return NSAPI_ERROR_OK;
|
||||
|
|
Loading…
Reference in New Issue