Skip to content

Commit 4d4f39c

Browse files
WiFiSSLClient: adding check for rx_buffer being != nullptr, like in parent class
1 parent 61791cf commit 4d4f39c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)