Commit f1973e70 authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Coverity hates it when we do "E1 ? E2 : E2".

It says, 'Incorrect expression (IDENTICAL_BRANCHES)'

Fix for CID 1364127. Not in any released Tor.
parent 4d5b252f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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 :