[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r3530: When parsing the list of hops in a CIRC event, make sure we' (vidalia/trunk/src/torcontrol)



Author: edmanm
Date: 2009-02-16 20:30:38 -0500 (Mon, 16 Feb 2009)
New Revision: 3530

Modified:
   vidalia/trunk/src/torcontrol/circuit.cpp
Log:

When parsing the list of hops in a CIRC event, make sure we're actually
parsing a list of hops and not "PURPOSE=foo" when EXTENDED_EVENTS is
enabled.


Modified: vidalia/trunk/src/torcontrol/circuit.cpp
===================================================================
--- vidalia/trunk/src/torcontrol/circuit.cpp	2009-02-17 00:59:05 UTC (rev 3529)
+++ vidalia/trunk/src/torcontrol/circuit.cpp	2009-02-17 01:30:38 UTC (rev 3530)
@@ -49,7 +49,7 @@
     _status = Circuit::toStatus(parts.at(1));
 
     /* Get the circuit path (list of routers) */
-    if (parts.size() > 2) {
+    if (parts.size() > 2 && parts.at(2).startsWith("$")) {
       foreach (QString hop, parts.at(2).split(",")) {
         QStringList parts = hop.split(QRegExp("[=~]"));
         if (parts.size() != 2)