Skip to content

Commit

Permalink
[PAL/Linux-SGX] Add ECONNRESET to errors allowed from ocall_recv
Browse files Browse the repository at this point in the history
Signed-off-by: Borys Popławski <[email protected]>
  • Loading branch information
boryspoplawski committed Jun 30, 2022
1 parent 74e74a8 commit 0a97638
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pal/src/host/linux-sgx/enclave_ocalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -1448,8 +1448,9 @@ ssize_t ocall_recv(int sockfd, struct iovec* iov, size_t iov_len, void* addr, si

if (retval < 0) {
if (retval != -EAGAIN && retval != -EWOULDBLOCK && retval != -EBADF
&& retval != -ECONNREFUSED && retval != -EINTR && retval != -EINVAL
&& retval != -ENOMEM && retval != -ENOTCONN && retval != -ENOTSOCK) {
&& retval != -ECONNREFUSED && retval != -ECONNRESET && retval != -EINTR
&& retval != -EINVAL && retval != -ENOMEM && retval != -ENOTCONN
&& retval != -ENOTSOCK) {
retval = -EPERM;
}
goto out;
Expand Down

0 comments on commit 0a97638

Please sign in to comment.