diff options
author | jsing <> | 2021-07-31 09:31:04 +0000 |
---|---|---|
committer | jsing <> | 2021-07-31 09:31:04 +0000 |
commit | 6b4cb95d17ea02c148cb13d001279ae95a192b62 (patch) | |
tree | 1f58d65a92c2d43bc101eb983e362b70b06ef12a /src/lib/libssl/ssl_pkt.c | |
parent | f9d12ac132435716ba1d1886ac306596071b29e0 (diff) | |
download | openbsd-6b4cb95d17ea02c148cb13d001279ae95a192b62.tar.gz openbsd-6b4cb95d17ea02c148cb13d001279ae95a192b62.tar.bz2 openbsd-6b4cb95d17ea02c148cb13d001279ae95a192b62.zip |
We have defines for alert levels - use them instead of magic numbers.
Diffstat (limited to 'src/lib/libssl/ssl_pkt.c')
-rw-r--r-- | src/lib/libssl/ssl_pkt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_pkt.c b/src/lib/libssl/ssl_pkt.c index c3fd4a7365..2b1a6a41a2 100644 --- a/src/lib/libssl/ssl_pkt.c +++ b/src/lib/libssl/ssl_pkt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssl_pkt.c,v 1.46 2021/07/26 03:17:38 jsing Exp $ */ | 1 | /* $OpenBSD: ssl_pkt.c,v 1.47 2021/07/31 09:31:04 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1204,7 +1204,7 @@ int | |||
1204 | ssl3_send_alert(SSL *s, int level, int desc) | 1204 | ssl3_send_alert(SSL *s, int level, int desc) |
1205 | { | 1205 | { |
1206 | /* If a fatal one, remove from cache */ | 1206 | /* If a fatal one, remove from cache */ |
1207 | if ((level == 2) && (s->session != NULL)) | 1207 | if ((level == SSL3_AL_FATAL) && (s->session != NULL)) |
1208 | SSL_CTX_remove_session(s->ctx, s->session); | 1208 | SSL_CTX_remove_session(s->ctx, s->session); |
1209 | 1209 | ||
1210 | S3I(s)->alert_dispatch = 1; | 1210 | S3I(s)->alert_dispatch = 1; |