no magic values

pull/7881/head
Reda Chouk 2024-08-17 00:32:32 +02:00
parent db64d36f00
commit 2356bec909
1 changed files with 2 additions and 4 deletions

View File

@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#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 {