mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
sock: pass protocol to sockets
This commit is contained in:
@@ -28,7 +28,7 @@ syscallret_t syscall_accept(context_t *, int oldfd, abisockaddr_t *abisockaddr,
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
socket_t *client = socket_create(server->type);
|
||||
socket_t *client = socket_create(server->type, server->protocol);
|
||||
if (client == NULL) {
|
||||
ret.errno = ENOMEM;
|
||||
goto cleanup;
|
||||
|
||||
Reference in New Issue
Block a user