diff --git a/src/internal.c b/src/internal.c index 8e81b96e70..33e8ed4483 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 @@ -25054,9 +25052,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 {