From b4aff28f977beb701c9825b15f5fef06d06b5726 Mon Sep 17 00:00:00 2001 From: chombier <> Date: Thu, 5 Apr 2001 09:08:15 +0000 Subject: [PATCH] fixed cleared login/password from geturl --- macssh/source/ae/ae.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/macssh/source/ae/ae.c b/macssh/source/ae/ae.c index d506aa0..960bf05 100755 --- a/macssh/source/ae/ae.c +++ b/macssh/source/ae/ae.c @@ -572,7 +572,9 @@ goodUrl: if ( gApplicationPrefs->parseAliases ) { BlockMoveData(host, favorite+1, favorite[0] = strlen(host)); if ( (theParams = NameToConnInitParams(favorite, false, "\p", &wasAlias)) != NULL ) { - SessionPrefs *SessPtr = *((**theParams).session); + SessionPrefs *SessPtr; + HLock((Handle)(**theParams).session); + SessPtr = *((**theParams).session); if ( user != NULL ) { BlockMoveData(user, (unsigned char *)SessPtr->username + 1, ((unsigned char *)SessPtr->username)[0] = strlen(user)); if ( password != NULL ) { @@ -584,12 +586,9 @@ goodUrl: StringToNum(favorite, &port); SessPtr->port = port; } + HUnlock((Handle)(**theParams).session); } } - if ( user == NULL ) - user = ""; - if ( password == NULL ) - password = ""; if ( theParams && CreateConnectionFromParams(theParams) ) { TelInfo->gotDocument = 1; err = noErr;