summaryrefslogtreecommitdiffstats
path: root/test/handshake_helper.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-04-24 14:15:49 +0100
committerMatt Caswell <matt@openssl.org>2017-04-25 11:13:39 +0100
commit561f6f1ed237cb9a5a9020e58a368dd9d351b40b (patch)
tree3bc069588f851326eb99b1832caf0d6ed641e799 /test/handshake_helper.c
parentce466c96f0eb14e5c35181e54e52164de1afe921 (diff)
Address review feedback for the SCTP changes
Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/3286)
Diffstat (limited to 'test/handshake_helper.c')
-rw-r--r--test/handshake_helper.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/handshake_helper.c b/test/handshake_helper.c
index 4943e82d83..8ad35ce311 100644
--- a/test/handshake_helper.c
+++ b/test/handshake_helper.c
@@ -1006,11 +1006,16 @@ static handshake_status_t handshake_status(peer_status_t last_status,
int client_spoke_last)
{
switch (last_status) {
+ case PEER_WAITING:
+ /* Shouldn't ever happen */
+ return INTERNAL_ERROR;
+
case PEER_SUCCESS:
switch (previous_status) {
case PEER_SUCCESS:
/* Both succeeded. */
return HANDSHAKE_SUCCESS;
+ case PEER_WAITING:
case PEER_RETRY:
/* Let the first peer finish. */
return HANDSHAKE_RETRY;