From 4b003389b8282d7c12029ba5fa0ec3d683da795e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 26 Sep 2025 23:14:28 -0500 Subject: [PATCH] stack it --- esphome/components/esphome/ota/ota_esphome.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/esphome/components/esphome/ota/ota_esphome.cpp b/esphome/components/esphome/ota/ota_esphome.cpp index e2425e0181..fccf4106db 100644 --- a/esphome/components/esphome/ota/ota_esphome.cpp +++ b/esphome/components/esphome/ota/ota_esphome.cpp @@ -717,15 +717,6 @@ bool ESPHomeOTAComponent::handle_auth_read_() { const size_t to_read = hex_size * 2; // CNonce + Response - // Initialize buffer if not already done - if (!this->auth_buf_) { - // Note: we're reusing the buffer from handle_auth_send_ which should have the nonce - // But if we reach here without it, something went wrong - this->log_auth_warning_(LOG_STR("Auth buffer not initialized")); - this->cleanup_connection_(); - return false; - } - // Try to read remaining bytes (CNonce + Response) // We need to read into the buffer starting after the auth_type (1 byte) and nonce (hex_size bytes) size_t offset = 1 + hex_size;