[or-cvs] r23950: {arm} fix: crashing error when querying hidden service parameters (arm/trunk/src/util)

Damian Johnson atagar1 at gmail.com
Sat Dec 18 20:22:12 UTC 2010


Author: atagar
Date: 2010-12-18 20:22:12 +0000 (Sat, 18 Dec 2010)
New Revision: 23950

Modified:
   arm/trunk/src/util/torTools.py
Log:
fix: crashing error when querying hidden service parameters (caught by StrangeCharm and fixed by katmagic)



Modified: arm/trunk/src/util/torTools.py
===================================================================
--- arm/trunk/src/util/torTools.py	2010-12-17 17:09:14 UTC (rev 23949)
+++ arm/trunk/src/util/torTools.py	2010-12-18 20:22:12 UTC (rev 23950)
@@ -448,7 +448,7 @@
               if value != None:
                 if fetchType == "list": result.append(value)
                 elif fetchType == "map":
-                  if key in result: result.append(value)
+                  if key in result: result[key].append(value)
                   else: result[key] = [value]
         except (socket.error, TorCtl.ErrorReply, TorCtl.TorCtlClosed), exc:
           if type(exc) == TorCtl.TorCtlClosed: self.close()



More information about the tor-commits mailing list