diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2026-01-01 13:47:45 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2026-01-01 13:47:45 +0000 |
| commit | e99182dab3093f1645f9e4ff216aa752d7443fb1 (patch) | |
| tree | 175a373c32a58783edd41901d4baf6e68626c7ec /src/sysdeps | |
| parent | 45137c6466050c9468931713a7504eae3d08bfce (diff) | |
| download | skalibs-e99182dab3093f1645f9e4ff216aa752d7443fb1.tar.gz | |
Save/restore errno in all safe wrappers
Diffstat (limited to 'src/sysdeps')
| -rw-r--r-- | src/sysdeps/tryipv6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysdeps/tryipv6.c b/src/sysdeps/tryipv6.c index a1db92e..d7e073e 100644 --- a/src/sysdeps/tryipv6.c +++ b/src/sysdeps/tryipv6.c @@ -22,7 +22,7 @@ int main (void) s = socket(AF_INET6, SOCK_STREAM, 0) ; if (s < 0) return 111 ; do r = connect(s, (struct sockaddr *)&bar, sizeof bar) ; - while ((r == -1) && (errno == EINTR)) ; - if ((r == -1) && (errno == EALREADY)) errno = EINPROGRESS ; + while (r == -1 && errno == EINTR) ; + if (r == -1 && errno == EALREADY) errno = EINPROGRESS ; return 0 ; } |
