mirror of https://github.com/ARMmbed/mbed-os.git
Fixed ESP8266 nullpointer dereference.
parent
5f495db06b
commit
0adb47b3aa
|
@ -557,6 +557,9 @@ nsapi_error_t ESP8266::open_tcp(int id, const char *addr, int port, int keepaliv
|
|||
static const char *type = "TCP";
|
||||
bool done = false;
|
||||
|
||||
if (!addr) {
|
||||
return NSAPI_ERROR_PARAMETER;
|
||||
}
|
||||
_smutex.lock();
|
||||
|
||||
// process OOB so that _sock_i reflects the correct state of the socket
|
||||
|
|
Loading…
Reference in New Issue