Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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‎

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /