Skip to content

Commit ba75924

Browse files
author
Veijo Pesonen
committed
tests-netsocket-tls: TLSSOCKET_ECHOTEST deletes socket on failure case
1 parent 7e18cc5 commit ba75924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TESTS/netsocket/tls/tlssocket_echotest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ void TLSSOCKET_ECHOTEST()
6363
if (tlssocket_connect_to_echo_srv(*sock) != NSAPI_ERROR_OK) {
6464
printf("Error from tlssocket_connect_to_echo_srv\n");
6565
TEST_FAIL();
66-
return;
6766
delete sock;
67+
return;
6868
}
6969

7070
int recvd;

0 commit comments

Comments
 (0)