Skip to content

Commit e175410

Browse files
memcached: Revert wolfSSL_in_connect_init changes
1 parent 72cbd9a commit e175410

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/ssl.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29505,7 +29505,13 @@ int wolfSSL_SSL_in_connect_init(WOLFSSL* ssl)
2950529505
if (ssl == NULL)
2950629506
return WOLFSSL_FAILURE;
2950729507

29508-
return ssl->options.handShakeState == NULL_STATE;
29508+
if (ssl->options.side == WOLFSSL_CLIENT_END) {
29509+
return ssl->options.connectState > CONNECT_BEGIN &&
29510+
ssl->options.connectState < SECOND_REPLY_DONE;
29511+
}
29512+
29513+
return ssl->options.acceptState > ACCEPT_BEGIN &&
29514+
ssl->options.acceptState < ACCEPT_THIRD_REPLY_DONE;
2950929515
}
2951029516

2951129517
#ifndef NO_SESSION_CACHE

0 commit comments

Comments
 (0)