Don't send an alert if we've just received one
authorMatt Caswell <matt@openssl.org>
Sat, 23 May 2015 20:51:21 +0000 (21:51 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 25 May 2015 16:52:27 +0000 (17:52 +0100)
commit11414f17d93ec04d2d056d5f3a87e964a7412431
tree9216ba2295e153dee0d1350167138fb71cf24f24
parent0a59e2dc308e6d6a7078e6b3e4e714101a2db538
Don't send an alert if we've just received one

If the record received is for a version that we don't support, previously we
were sending an alert back. However if the incoming record already looks
like an alert then probably we shouldn't do that. So suppress an outgoing
alert if it looks like we've got one incoming.

Reviewed-by: Kurt Roeckx <kurt@openssl.org>
ssl/s3_pkt.c