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 22:11:02 +0000 (23:11 +0100)
commit75077a2277f95cc293e1f5d0538b426ae5e99e6f
tree5529c4061510fb0311ce35b847f9d5d937f10ee8
parentc62592e52f38280e9e31cd42e7a77cf2604518a1
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