Skip to content

Commit 499a0bc

Browse files
authored
Revert "network: errno should be already negative"
1 parent 490c4aa commit 499a0bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ struct iio_context * network_create_context(const char *host)
14841484

14851485
fd = create_socket(res, DEFAULT_TIMEOUT_MS);
14861486
if (fd < 0) {
1487-
errno = fd;
1487+
errno = -fd;
14881488
goto err_free_addrinfo;
14891489
}
14901490

0 commit comments

Comments
 (0)