Matt Caswell 41d049e1cd Return errors even if the cookie validation has succeeded
In the DTLS ClientHello processing the return value is stored in |ret| which
by default is -1. We wish to return 1 on success or 2 on success *and* we
have validated the DTLS cookie. Previously on successful validation of the
cookie we were setting |ret| to 2. Unfortunately if we later encounter an
error then we can end up returning a successful (positive) return code from
the function because we already set |ret| to a positive value.

This does not appear to have a security consequence because the handshake
just fails at a later point.

Reviewed-by: Andy Polyakov <appro@openssl.org>
2015-11-30 10:51:43 +00:00
..
2015-09-20 14:22:52 +01:00
2015-06-02 09:12:39 +01:00
2015-05-22 10:24:49 +01:00
2015-02-27 20:32:49 +00:00
2015-01-22 09:38:39 +00:00
2015-09-02 00:31:33 +01:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-07-27 16:14:02 +01:00
2015-01-22 09:38:39 +00:00
2015-11-24 21:53:40 +01:00
2015-11-24 21:53:40 +01:00
2015-05-05 20:07:48 +01:00
2015-10-23 20:43:09 +02:00
2015-04-16 13:51:51 -04:00