diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-07-21 14:14:33 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-07-21 14:14:33 +0200 |
commit | f1973e70a45d9705d3bd547af9cee92ca3611213 (patch) | |
tree | 3449ad730bd1926ac18801a84ad64a3d63316b02 | |
parent | 4d5b252f0f0179add75e4c2a2f8ab690864584f3 (diff) | |
download | tor-f1973e70a45d9705d3bd547af9cee92ca3611213.tar.gz tor-f1973e70a45d9705d3bd547af9cee92ca3611213.zip |
Coverity hates it when we do "E1 ? E2 : E2".
It says, 'Incorrect expression (IDENTICAL_BRANCHES)'
Fix for CID 1364127. Not in any released Tor.
-rw-r--r-- | src/common/sandbox.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/common/sandbox.c b/src/common/sandbox.c index 56a1cff6d3..74187e5d63 100644 --- a/src/common/sandbox.c +++ b/src/common/sandbox.c @@ -608,7 +608,6 @@ sb_socket(scmp_filter_ctx ctx, sandbox_cfg_t *filter) const int pf = i ? PF_INET : PF_INET6; for (j=0; j < 3; ++j) { const int type = (j == 0) ? SOCK_STREAM : - (j == 1) ? SOCK_DGRAM : SOCK_DGRAM; const int protocol = (j == 0) ? IPPROTO_TCP : (j == 1) ? IPPROTO_IP : |