Skip to content

Conversation

lucasssvaz
Copy link
Member

@lucasssvaz lucasssvaz commented Oct 4, 2023

Description of Change

Fixes LoadProhibited exception (introduced in #8541) by properly initializing and checking the _rxBuffer pointer in the WiFiClient.

Tests scenarios

Tested on ESP32-DevKitC using the following sketch:

#include <Arduino.h>
#include <WiFi.h>

WiFiClient client;

void loop() {
  delay(1000);
  Serial.println(".");
}

void setup() {
  Serial.begin(115200);
  Serial.println("READY");
  delay(1000);
  Serial.println("Flush WiFiClient client...");
  client.flush();
  delay(2000);
  Serial.println("Setup complete");
}

Related links

Closes #8681

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WiFiClient::flush() crashes due to Load Prohibit since 2.0.12, earlier versions work fine.
2 participants