From 2356bec909f52e26dc771d11c0e9ad885d8920d0 Mon Sep 17 00:00:00 2001 From: Reda Chouk Date: Sat, 17 Aug 2024 00:32:32 +0200 Subject: [PATCH] no magic values --- src/internal.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/internal.c b/src/internal.c index 2bf201c9b..a3b113866 100644 --- a/src/internal.c +++ b/src/internal.c @@ -19,8 +19,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA */ - - #ifdef HAVE_CONFIG_H #include #endif @@ -25065,9 +25063,9 @@ static int SendAlert_ex(WOLFSSL* ssl, int severity, int type) /* * We check if we are trying to send a - * CLOSE_NOTIFY alert + * CLOSE_NOTIFY alert. * */ - if (type == 0) { + if (type == close_notify) { if (!ssl->options.sentNotify) { ssl->options.sentNotify = 1; } else {