Skip to content

Commit 96259cb

Browse files
committed
examples:fix wrong function in SSL socket examples
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 14a8ff9 commit 96259cb

File tree

2 files changed

+2
-2
lines changed
  • examples

2 files changed

+2
-2
lines changed

examples/ssl-socket-clientauth/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ static void socket_task(void *arg)
240240
}
241241

242242
/* Check if socket not connected */
243-
if (ssl_socket_geterror(socket_id) != SOCK_STA_CONNECTED)
243+
if (ssl_socket_getstatus(socket_id) != SOCK_STA_CONNECTED)
244244
{
245245
/* Initiate SSL socket connection */
246246
ret = ssl_socket_open(socket_id);

examples/ssl-socket-example/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void socket_task(void *arg)
166166
}
167167

168168
/* Check if socket not connected */
169-
if (ssl_socket_geterror(socket_id) != SOCK_STA_CONNECTED) {
169+
if (ssl_socket_getstatus(socket_id) != SOCK_STA_CONNECTED) {
170170
/* Initiate SSL socket connection */
171171
ret = ssl_socket_open(socket_id);
172172
if (ret < 0)

0 commit comments

Comments
 (0)