summaryrefslogtreecommitdiffstats
path: root/ssl
diff options
context:
space:
mode:
authorMatthieu Crapet <mcrapet@gmail.com>2014-08-08 18:03:58 -0400
committerRich Salz <rsalz@akamai.com>2014-08-08 22:47:33 -0400
commit6d03125ccf0fd870792a4fa9f6140f9983f241a6 (patch)
treed94ce3e56310d40d033f894323c9ab5f98f05032 /ssl
parenta90081576c94f9f54de1755188a00ccc1760549a (diff)
RT 1505: Use SSL3_AL_FATAL not "2"
Use SSL3_AL_FATAL instead of the literal constant "2" Every bit of cleanup helps. Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'ssl')
-rw-r--r--ssl/s3_pkt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c
index 8fc3bb4e0b..9a1d65d8cb 100644
--- a/ssl/s3_pkt.c
+++ b/ssl/s3_pkt.c
@@ -1793,7 +1793,7 @@ int ssl3_send_alert(SSL *s, int level, int desc)
desc = SSL_AD_HANDSHAKE_FAILURE; /* SSL 3.0 does not have protocol_version alerts */
if (desc < 0) return -1;
/* If a fatal one, remove from cache */
- if ((level == 2) && (s->session != NULL))
+ if ((level == SSL3_AL_FATAL) && (s->session != NULL))
SSL_CTX_remove_session(s->ctx,s->session);
s->s3->alert_dispatch=1;