tcp_transport: fix tcp trasnport exception

pull/8644/head
David Čermák 2022-01-20 06:48:07 +00:00 zatwierdzone przez xutao
rodzic f3e0c8bc41
commit a48c6e097a
2 zmienionych plików z 6 dodań i 15 usunięć

Wyświetl plik

@ -1,16 +1,8 @@
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD /*
// * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
// Licensed under the Apache License, Version 2.0 (the "License"); *
// you may not use this file except in compliance with the License. * SPDX-License-Identifier: Apache-2.0
// You may obtain a copy of the License at */
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <stdlib.h> #include <stdlib.h>
@ -310,7 +302,7 @@ esp_err_t esp_transport_set_parent_transport_func(esp_transport_handle_t t, payl
esp_tls_error_handle_t esp_transport_get_error_handle(esp_transport_handle_t t) esp_tls_error_handle_t esp_transport_get_error_handle(esp_transport_handle_t t)
{ {
if (t) { if (t && t->base && t->base->error_handle) {
return &t->base->error_handle->esp_tls_err_h_base; return &t->base->error_handle->esp_tls_err_h_base;
} }
return NULL; return NULL;

Wyświetl plik

@ -2131,7 +2131,6 @@ components/tcp_transport/test/tcp_transport_fixtures.h
components/tcp_transport/test/test_transport_basic.c components/tcp_transport/test/test_transport_basic.c
components/tcp_transport/test/test_transport_connect.c components/tcp_transport/test/test_transport_connect.c
components/tcp_transport/test/test_transport_fixtures.c components/tcp_transport/test/test_transport_fixtures.c
components/tcp_transport/transport.c
components/tcp_transport/transport_ssl.c components/tcp_transport/transport_ssl.c
components/tcp_transport/transport_utils.c components/tcp_transport/transport_utils.c
components/tcpip_adapter/include/tcpip_adapter.h components/tcpip_adapter/include/tcpip_adapter.h