# HG changeset patch # User enz # Date 984483963 0 # Node ID 0ce333d046b91beeb147fa4c076dd7805027145f # Parent 27ef8eaa254d2c21a440a59a877953d80fc44d59 [svn] Fix bug. Server name was not yet initialized if server required authentication at connect time. diff -r 27ef8eaa254d -r 0ce333d046b9 src/client.c --- a/src/client.c Tue Mar 13 11:40:49 2001 +0000 +++ b/src/client.c Tue Mar 13 11:46:03 2001 +0000 @@ -1,7 +1,7 @@ /* client.c - $Id: client.c 248 2001-01-25 11:00:03Z bears $ + $Id: client.c 269 2001-03-13 11:46:03Z enz $ */ #if HAVE_CONFIG_H @@ -344,6 +344,7 @@ client.in = client.out = NULL; break; } + Utl_cpyStr( client.serv, serv ); stat = getStat(); if ( stat == STAT_READY_POST_ALLOW || stat == STAT_READY_NO_POST_ALLOW ) @@ -357,7 +358,6 @@ case STAT_READY_NO_POST_ALLOW: Log_inf( "Connected to %s:%d", inet_ntoa( sIn.sin_addr ), port ); - Utl_cpyStr( client.serv, serv ); return TRUE; default: Log_err( "Bad server stat %d", stat );