Merge pull request #11975 from michalpasztamobica/pppinterface_pointer_checks

PPPinterface: remove faulty address getter check for invalid pointer
pull/12078/head
Martin Kojtal 2019-12-04 10:14:30 +01:00 committed by GitHub
commit 34c9cf93e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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;