mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-28 21:28:21 +00:00
sock: pass protocol to sockets
This commit is contained in:
@@ -43,7 +43,7 @@ syscallret_t syscall_socket(context_t *, int domain, int type, int protocol) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
socket_t *socket = socket_create(socktype);
|
||||
socket_t *socket = socket_create(socktype, protocol);
|
||||
if (socket == NULL) {
|
||||
ret.errno = ENOMEM;
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user