]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a failure case of connection_ap_handshake_attach_circuit()
authorSebastian Hahn <sebastian@torproject.org>
Wed, 27 Apr 2011 23:48:25 +0000 (01:48 +0200)
committerSebastian Hahn <sebastian@torproject.org>
Thu, 28 Apr 2011 16:14:50 +0000 (18:14 +0200)
tor_fragile_assert() might be a no-op, so we have to return something
here to indicate failure to the caller.

src/or/circuituse.c

index 247aca7e07e79e6c9c328c8d44872e104216a777..6a9c3975c229dce1480e8d1469791bb8c0445df1 100644 (file)
@@ -1573,6 +1573,7 @@ connection_ap_handshake_attach_circuit(edge_connection_t *conn)
           return -1;
         default: /* oops */
           tor_fragile_assert();
+          return -1;
         }
       }
     }