summaryrefslogtreecommitdiffstats
path: root/ssl/d1_msg.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-22 14:57:18 +0200
committerMatt Caswell <matt@openssl.org>2015-10-30 09:39:47 +0100
commit024f543c15e70acb57a80067c3b32227f87bfe5f (patch)
tree72bc8530d31b4fae449df9270f516d9637be31e3 /ssl/d1_msg.c
parentFix unitialised variable problem (diff)
downloadopenssl-024f543c15e70acb57a80067c3b32227f87bfe5f.tar.xz
openssl-024f543c15e70acb57a80067c3b32227f87bfe5f.zip
Move in_handshake into STATEM
The SSL variable |in_handshake| seems misplaced. It would be better to have it in the STATEM structure. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/d1_msg.c')
-rw-r--r--ssl/d1_msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/d1_msg.c b/ssl/d1_msg.c
index 40152c28d2..4a2f0dc980 100644
--- a/ssl/d1_msg.c
+++ b/ssl/d1_msg.c
@@ -125,11 +125,11 @@ int dtls1_write_app_data_bytes(SSL *s, int type, const void *buf_, int len)
* Check if we have to continue an interrupted handshake for reading
* belated app data with SCTP.
*/
- if ((SSL_in_init(s) && !s->in_handshake) ||
+ if ((SSL_in_init(s) && !ossl_statem_get_in_handshake(s)) ||
(BIO_dgram_is_sctp(SSL_get_wbio(s)) &&
ossl_statem_in_sctp_read_sock(s)))
#else
- if (SSL_in_init(s) && !s->in_handshake)
+ if (SSL_in_init(s) && !ossl_statem_get_in_handshake(s))
#endif
{
i = s->handshake_func(s);