Skip to content

Commit

Permalink
no magic values
Browse files Browse the repository at this point in the history
  • Loading branch information
gasbytes committed Aug 16, 2024
1 parent d7e0cea commit 69fbc83
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/internal.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/



#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 69fbc83

Please sign in to comment.