Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix computation of size to send in getsockname in websocket_to_posix_socket.c #22433

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion system/lib/websocket/websocket_to_posix_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ int getsockname(int socket, struct sockaddr *address, socklen_t *address_len) {
d.header.function = POSIX_SOCKET_MSG_GETSOCKNAME;
d.socket = socket;
d.address_len = *address_len;
emscripten_websocket_send_binary(bridgeSocket, &d, sizeof(d) + *address_len - MAX_SOCKADDR_SIZE);
emscripten_websocket_send_binary(bridgeSocket, &d, sizeof(d));

wait_for_call_result(b);
int ret = b->data->ret;
Expand Down
Loading