From edac0e079c48b3eb254c7af2ae5d6bec87bca993 Mon Sep 17 00:00:00 2001 From: Ramya <89954993+krispraws@users.noreply.github.com> Date: Fri, 17 Sep 2021 22:42:54 +0000 Subject: [PATCH] openssl: Fix return value from tls_net_read. --- src/tls/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls/openssl.c b/src/tls/openssl.c index f39a0ce8a34..8f8ba320581 100644 --- a/src/tls/openssl.c +++ b/src/tls/openssl.c @@ -359,7 +359,7 @@ static int tls_net_read(struct flb_upstream_conn *u_conn, if (ret == SSL_ERROR_WANT_READ) { ret = FLB_TLS_WANT_READ; } - else if (ret < 0) { + else { ret = -1; } }