From 5ae660db48259b1a0bc637e341e925e0a252f831 Mon Sep 17 00:00:00 2001 From: Steve Kim Date: Mon, 4 Nov 2024 09:42:09 -0800 Subject: [PATCH] set new vtable functions in non secitem sockets to null --- source/posix/socket.c | 2 ++ source/windows/iocp/socket.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/source/posix/socket.c b/source/posix/socket.c index daaa37be7..47e0b18a8 100644 --- a/source/posix/socket.c +++ b/source/posix/socket.c @@ -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) { diff --git a/source/windows/iocp/socket.c b/source/windows/iocp/socket.c index 9cf884660..1add9997b 100644 --- a/source/windows/iocp/socket.c +++ b/source/windows/iocp/socket.c @@ -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.