diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tran_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tran_sock.c b/lib/tran_sock.c index a9af65e..f96784d 100644 --- a/lib/tran_sock.c +++ b/lib/tran_sock.c @@ -107,7 +107,7 @@ init_sock(vfu_ctx_t *vfu_ctx) /* start listening business */ ret = bind(unix_sock, (struct sockaddr*)&addr, sizeof(addr)); if (ret < 0) { - ret = errno; + ret = -errno; goto out; } |