Skip to content
Snippets Groups Projects
Commit 77933477 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix sizeof() target.

parent 287ee6e4
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1875 passed
......@@ -1376,7 +1376,7 @@ js_handle_events(JSContext *cx, js_callback_t *cb, volatile int *terminated)
}
if (ev->type == JS_EVENT_SOCKET_CONNECT) {
if ((jssp = (js_socket_private_t*)JS_GetPrivate(cx, ev->cx)) != NULL) {
slen=sizeof(ev->data.connect.sock);
slen = sizeof(jssp->remote_addr.addr);
getpeername(ev->data.connect.sock, &jssp->remote_addr.addr, &slen);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment