]> granicus.if.org Git - openssl/commit
Ensure we are in accept state in DTLSv1_listen
authorMatt Caswell <matt@openssl.org>
Wed, 23 Nov 2016 23:03:13 +0000 (23:03 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 29 Nov 2016 10:04:37 +0000 (10:04 +0000)
commit9fa506681c842bf9b27ddf4ea8579c4695be3bfa
treeec353d2053c162801db4042a6ca9e4676d6d3848
parentcbc8a839959418d8a2c2e3ec6bdf394852c9501e
Ensure we are in accept state in DTLSv1_listen

Calling SSL_set_accept_state() after DTLSv1_listen() clears the state, so
SSL_accept() no longer works. In 1.0.2 calling DTLSv1_listen() would set
the accept state automatically. We should still do that.

Fixes #1989

Reviewed-by: Andy Polyakov <appro@openssl.org>
(cherry picked from commit 5bdcd362d24cbbcf18c5eb9df655fe9f7bcf5850)
ssl/d1_lib.c