diff options
author | rowanbeentje <rowan@beent.je> | 2010-01-03 16:24:49 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-01-03 16:24:49 +0000 |
commit | e3d46eb78d4a1ae05780d044ab8c8b875f000d2a (patch) | |
tree | 110e7fb31540ea299cf92d851a51a88904bbd30d /Source/SPSSHTunnel.m | |
parent | 869f8f003a218b903a524c2e4edd03e9a3b92ed3 (diff) | |
download | sequelpro-e3d46eb78d4a1ae05780d044ab8c8b875f000d2a.tar.gz sequelpro-e3d46eb78d4a1ae05780d044ab8c8b875f000d2a.tar.bz2 sequelpro-e3d46eb78d4a1ae05780d044ab8c8b875f000d2a.zip |
- Fix hashing of auth strings - fixes recent (and 64-bit) second use of SSH tunnels hanging
Diffstat (limited to 'Source/SPSSHTunnel.m')
-rw-r--r-- | Source/SPSSHTunnel.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPSSHTunnel.m b/Source/SPSSHTunnel.m index 3d2592e4..a2aed5d1 100644 --- a/Source/SPSSHTunnel.m +++ b/Source/SPSSHTunnel.m @@ -57,8 +57,8 @@ debugMessages = [[NSMutableArray alloc] init]; // Set up a connection for use by the tunnel process - tunnelConnectionName = [[NSString alloc] initWithFormat:@"SequelPro-%f", [[NSString stringWithFormat:@"%f", [[NSDate date] timeIntervalSince1970]] hash]]; - tunnelConnectionVerifyHash = [[NSString alloc] initWithFormat:@"%f", [[NSString stringWithFormat:@"%f%i", [[NSDate date] timeIntervalSince1970]] hash]]; + tunnelConnectionName = [[NSString alloc] initWithFormat:@"SequelPro-%u", [[NSString stringWithFormat:@"%f", [[NSDate date] timeIntervalSince1970]] hash]]; + tunnelConnectionVerifyHash = [[NSString alloc] initWithFormat:@"%u", [[NSString stringWithFormat:@"%f%i", [[NSDate date] timeIntervalSince1970]] hash]]; tunnelConnection = [[NSConnection defaultConnection] retain]; [tunnelConnection runInNewThread]; [tunnelConnection removeRunLoop:[NSRunLoop currentRunLoop]]; |