Skip to content

Commit

Permalink
set new vtable functions in non secitem sockets to null
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Nov 4, 2024
1 parent 8e735cf commit 5ae660d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/posix/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ static struct aws_socket_vtable s_vtable = {
.socket_write_fn = s_socket_write,
.socket_get_error_fn = s_socket_get_error,
.socket_is_open_fn = s_socket_is_open,
.socket_get_protocol_fn = NULL,
.socket_get_server_name_fn = NULL,
};

static void s_socket_destroy_impl(void *user_data) {
Expand Down
2 changes: 2 additions & 0 deletions source/windows/iocp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ static struct aws_socket_vtable s_socket_vtable = {
.socket_write_fn = s_socket_write,
.socket_get_error_fn = s_socket_get_error,
.socket_is_open_fn = s_socket_is_open,
.socket_get_protocol_fn = NULL,
.socket_get_server_name_fn = NULL,
};

/* When socket is connected, any of the CONNECT_*** flags might be set.
Expand Down

0 comments on commit 5ae660d

Please sign in to comment.