summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/compat/cloudabi/cloudabi_sock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/cloudabi/cloudabi_sock.c b/sys/compat/cloudabi/cloudabi_sock.c
index 1cfff92..3aefab1 100644
--- a/sys/compat/cloudabi/cloudabi_sock.c
+++ b/sys/compat/cloudabi/cloudabi_sock.c
@@ -236,7 +236,7 @@ cloudabi_sys_sock_stat_get(struct thread *td,
/* Set ss_error. */
SOCK_LOCK(so);
- ss.ss_error = so->so_error;
+ ss.ss_error = cloudabi_convert_errno(so->so_error);
if ((uap->flags & CLOUDABI_SOCKSTAT_CLEAR_ERROR) != 0)
so->so_error = 0;
SOCK_UNLOCK(so);
OpenPOWER on IntegriCloud