From ae199d9f2bd4c35c718a7b61a21bc2e615e85e3c Mon Sep 17 00:00:00 2001 From: thorkill Date: Wed, 11 May 2016 19:29:04 +0200 Subject: [PATCH] Removed type check and debug output. We will send PKT_PROBE in send_sptps_packet only if handshake has been completed. --- src/sptps.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/sptps.c b/src/sptps.c index f08f1389..e580f41b 100644 --- a/src/sptps.c +++ b/src/sptps.c @@ -139,9 +139,8 @@ static bool send_record_priv(sptps_t *s, uint8_t type, const void *data, uint16_ // Send an application record. bool sptps_send_record(sptps_t *s, uint8_t type, const void *data, uint16_t len) { - if((!s->outstate) && (type != PKT_PROBE)) - return error(s, EINVAL, "Handshake phase not finished yet (outstate:%x type: %d)", - s->outstate, type); + if(!s->outstate) + return error(s, EINVAL, "Handshake phase not finished yet"); // Sanity checks: application cannot send data before handshake is finished, // and only record types 0..127 are allowed.