Skip to content

Commit 58f8769

Browse files
committed
unix: fix bogus structure field name
1 parent dd89381 commit 58f8769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/getaddrinfo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ static void uv__getaddrinfo_done(struct uv__work* w, int status) {
7171

7272
if (req->retcode < 0) {
7373
/* EAI_SYSTEM error */
74-
uv__set_sys_error(req->loop, -req->result);
74+
uv__set_sys_error(req->loop, -req->retcode);
7575
} else if (req->retcode == 0) {
7676
/* OK */
7777
#if defined(EAI_NODATA) /* FreeBSD deprecated EAI_NODATA */

0 commit comments

Comments
 (0)