mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-09-21 05:26:20 +02:00
Another clang+_FORTIFY_SOURCE issue
There was a parenthesis issue in test_util that clang found confusing. This part was only in master. Closes issue 14821.
This commit is contained in:
parent
a7f303a481
commit
1318c1611f
@ -4364,7 +4364,8 @@ test_util_socket(void *arg)
|
||||
(void)arg;
|
||||
|
||||
fd1 = tor_open_socket_with_extensions(domain, SOCK_STREAM, 0, 0, 0);
|
||||
if (SOCK_ERR_IS_EPROTO(fd1)) {
|
||||
int err = tor_socket_errno(fd1);
|
||||
if (fd1 < 0 && err == SOCK_ERRNO(EPROTONOSUPPORT)) {
|
||||
/* Assume we're on an IPv4-only or IPv6-only system, and give up now. */
|
||||
goto done;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user