Don't send an alert if we've just received one
authorMatt Caswell <matt@openssl.org>
Sat, 23 May 2015 20:32:12 +0000 (21:32 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 25 May 2015 16:48:41 +0000 (17:48 +0100)
commit02db21dfb4d9ea76d83a10df6d46d8b511fcce50
tree14bd1e5246c73c86b26e6b1ddfb373b250fafcaf
parentfc0eb00bca9dd892592edb6367927186928a7e1a
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/record/ssl3_record.c