changeset 338:126af684034e ganymed

still hangs during connection
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 15:03:49 -0700
parents 0d0d2fc9918c
children cd1d87edcbf6
files src/ch/ethz/ssh2/transport/ClientServerHello.java src/ch/ethz/ssh2/transport/TransportManager.java
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/transport/ClientServerHello.java	Thu Jul 31 15:00:28 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/ClientServerHello.java	Thu Jul 31 15:03:49 2014 -0700
@@ -76,7 +76,7 @@
         bo.flush();
         // Expect SSH-protoversion-softwareversion SP comments CR LF
         byte[] serverVersion = new byte[512];
-        String remoteIdentifier;
+        String remoteIdentifier = null;
         for (int i = 0; i < 50; i++) {
             int len = readLineRN(bi, serverVersion);
             remoteIdentifier = new String(serverVersion, 0, len, "ISO-8859-1");
--- a/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 15:00:28 2014 -0700
+++ b/src/ch/ethz/ssh2/transport/TransportManager.java	Thu Jul 31 15:03:49 2014 -0700
@@ -41,7 +41,7 @@
  * @version $Id: TransportManager.java 161 2014-05-01 18:01:55Z dkocher@sudo.ch $
  */
 public abstract class TransportManager {
-    private static final Logger log = Logger.getLogger(TransportManager.class);
+    protected static final Logger log = Logger.getLogger(TransportManager.class);
 
     private static final class HandlerEntry {
         MessageHandler mh;