diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-02-08 12:14:58 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-02-08 12:14:58 -0500 |
commit | d21ad8a78df8d134bd6acd512b95c8db2b5821ef (patch) | |
tree | 049909fb1c3879da9d270b5ea81fbd0fe2f12ab2 /src/test | |
parent | 576e248bc23c2dee24e92569c84ff06a8b53b13e (diff) | |
parent | 8ea00c85cb02df411d8df45aa5e71ac89b6c4e37 (diff) | |
download | tor-d21ad8a78df8d134bd6acd512b95c8db2b5821ef.tar.gz tor-d21ad8a78df8d134bd6acd512b95c8db2b5821ef.zip |
Merge remote-tracking branch 'tor-github/pr/2128/head'
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index b3a1e2caca..c4da911f83 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -5937,7 +5937,7 @@ static int fd_is_nonblocking(tor_socket_t fd) { int flags = fcntl(fd, F_GETFL, 0); - return (flags & O_NONBLOCK) == O_NONBLOCK; + return (flags & O_NONBLOCK) != 0; } #endif /* !defined(_WIN32) */ |