Skip to content

Commit e0f0441

Browse files
committed
Add retry loop to complete DTLS 1.3 early data handshake
1 parent 0516999 commit e0f0441

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dtls/client-dtls13-earlydata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ int main(int argc, char** argv)
178178
}
179179

180180
/* Complete handshake */
181-
if (wolfSSL_connect(ssl) != WOLFSSL_SUCCESS) {
181+
while (wolfSSL_connect(ssl) != WOLFSSL_SUCCESS) {
182182
if (wolfSSL_get_error(ssl, -1) != APP_DATA_READY) {
183183
fprintf(stderr, "wolfSSL_connect (2nd) failed\n");
184184
goto cleanup;

0 commit comments

Comments
 (0)