From 561f6f1ed237cb9a5a9020e58a368dd9d351b40b Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 24 Apr 2017 14:15:49 +0100 Subject: Address review feedback for the SCTP changes Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/3286) --- test/handshake_helper.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/handshake_helper.c') 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; -- cgit v1.2.3