diff options
author | Matt Caswell <matt@openssl.org> | 2015-10-22 14:57:18 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-10-30 09:39:47 +0100 |
commit | 024f543c15e70acb57a80067c3b32227f87bfe5f (patch) | |
tree | 72bc8530d31b4fae449df9270f516d9637be31e3 /ssl/d1_lib.c | |
parent | Fix unitialised variable problem (diff) | |
download | openssl-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_lib.c')
-rw-r--r-- | ssl/d1_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_lib.c b/ssl/d1_lib.c index a6f06329a2..f8a6a37362 100644 --- a/ssl/d1_lib.c +++ b/ssl/d1_lib.c @@ -1017,7 +1017,7 @@ int dtls1_heartbeat(SSL *s) } /* ...and no handshake in progress. */ - if (SSL_in_init(s) || s->in_handshake) { + if (SSL_in_init(s) || ossl_statem_get_in_handshake(s)) { SSLerr(SSL_F_DTLS1_HEARTBEAT, SSL_R_UNEXPECTED_MESSAGE); return -1; } |