mosh-client: Return true for still_connecting if !network

Fixes:

    $ MOSH_KEY=foo ./mosh-client 127.0.0.1 60010
    Crypto exception: Key must be 22 letters long.
    Segmentation fault

Closes #189.
This commit is contained in:
Keegan McAllister
2012-04-16 03:26:07 -04:00
committed by Keith Winstein
parent c15d3d0c48
commit c8fe5a3999
+5 -1
View File
@@ -53,7 +53,11 @@ private:
void output_new_frame( void );
bool still_connecting( void ) { return (network->get_remote_state_num() == 0); }
bool still_connecting( void )
{
/* Initially, network == NULL */
return ( !network ) || ( network->get_remote_state_num() == 0 );
}
public:
STMClient( const char *s_ip, int s_port, const char *s_key, const char *predict_mode )