Commit 6d03125c authored by Matthieu Crapet's avatar Matthieu Crapet Committed by Rich Salz
Browse files

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: default avatarMatt Caswell <matt@openssl.org>
parent a9008157
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;