[LibOS] Fix typo "hdl1" to "hdl2" in socketpair()

This commit is contained in:
Dmitrii Kuvaiskii
2020-05-14 19:53:23 -07:00
parent e3dc143656
commit 8f5a0d20d3
+1 -1
View File
@@ -196,7 +196,7 @@ int shim_do_socketpair(int domain, int type, int protocol, int* sv) {
hdl2->type = TYPE_SOCK;
set_handle_fs(hdl2, &socket_builtin_fs);
hdl1->flags = O_WRONLY;
hdl2->flags = O_WRONLY;
hdl2->acc_mode = MAY_READ | MAY_WRITE;
sock2->domain = domain;
sock2->sock_type = type & ~(SOCK_NONBLOCK | SOCK_CLOEXEC);