Skip to content

Commit 113a524

Browse files
andreagilardonifacchinm
authored andcommitted
WiFiS3: WiFiSSLClient: adding check for rx_buffer being != nullptr
Like in parent class
1 parent 6fda842 commit 113a524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFiS3/src/WiFiSSLClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ int WiFiSSLClient::available(){
132132
int WiFiSSLClient::_read() {
133133
/* -------------------------------------------------------------------------- */
134134
int rv = -1;
135-
if(_sock >= 0) {
135+
if(_sock >= 0 && rx_buffer != nullptr) {
136136
string res = "";
137137
uint32_t size = rx_buffer->freePositions() - 1;
138138
modem.begin();

0 commit comments

Comments
 (0)