[or-cvs] r15595: Fix two bugs in the original PuppeTor code. (puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl)

sebastian at seul.org sebastian at seul.org
Wed Jul 2 10:37:23 UTC 2008


Author: sebastian
Date: 2008-07-02 06:37:22 -0400 (Wed, 02 Jul 2008)
New Revision: 15595

Modified:
   puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl/NetworkImpl.java
   puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl/RouterNodeImpl.java
Log:
Fix two bugs in the original PuppeTor code.

Modified: puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl/NetworkImpl.java
===================================================================
--- puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl/NetworkImpl.java	2008-07-02 10:33:11 UTC (rev 15594)
+++ puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl/NetworkImpl.java	2008-07-02 10:37:22 UTC (rev 15595)
@@ -818,7 +818,7 @@
 				try {
 					node.shutdown();
 				} catch (PuppeTorException e) {
-					if (firstCaughtException != null) {
+					if (firstCaughtException == null) {
 						firstCaughtException = e;
 					}
 				}

Modified: puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl/RouterNodeImpl.java
===================================================================
--- puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl/RouterNodeImpl.java	2008-07-02 10:33:11 UTC (rev 15594)
+++ puppetor/branches/gsoc2008/src/de/uniba/wiai/lspi/puppetor/impl/RouterNodeImpl.java	2008-07-02 10:37:22 UTC (rev 15595)
@@ -303,7 +303,7 @@
 			IllegalArgumentException e = new IllegalArgumentException(
 					"nodeName=" + nodeName + ", controlPort=" + controlPort
 							+ ", socksPort=" + socksPort + ", orPort="
-							+ this.orPort + ", dirPort=" + this.dirPort
+							+ orPort + ", dirPort=" + dirPort
 							+ ", serverIpAddress='" + serverIpAddress + "'");
 			this.logger
 					.throwing(this.getClass().getName(), "RouterNodeImpl", e);



More information about the tor-commits mailing list