changeset 172:0ce333d046b9 noffle

[svn] Fix bug. Server name was not yet initialized if server required authentication at connect time.
author enz
date Tue, 13 Mar 2001 11:46:03 +0000
parents 27ef8eaa254d
children 19e3aa717196
files src/client.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 );