diff --git a/src/lib3270/linux/connect.c b/src/lib3270/linux/connect.c index cdbec03..02bbe08 100644 --- a/src/lib3270/linux/connect.c +++ b/src/lib3270/linux/connect.c @@ -198,7 +198,13 @@ static void net_connected(H3270 *hSession, int fd unused, LIB3270_IO_FLAG flag u if(!(hSession->host.current && hSession->host.srvc)) { // No host info, try the default one. - lib3270_set_url(hSession,NULL); + if(lib3270_set_url(hSession,NULL)) + { + int err = errno; + lib3270_trace_event(hSession,"Can't set default URL (%s)\n",strerror(err)); + return errno = err; + } + if(!(hSession->host.current && hSession->host.srvc)) { return errno = ENOENT; diff --git a/src/lib3270/properties.c b/src/lib3270/properties.c index 5eeb194..9803ac9 100644 --- a/src/lib3270/properties.c +++ b/src/lib3270/properties.c @@ -66,21 +66,21 @@ static const LIB3270_INT_PROPERTY properties[] = { { "ready", // Property name. - N_( "" ), // Property description. + N_( "Is terminal ready" ), // Property description. lib3270_is_ready, // Get value. NULL // Set value. }, { "connected", // Property name. - N_( "" ), // Property description. + N_( "Is terminal connected" ), // Property description. lib3270_is_connected, // Get value. NULL // Set value. }, { "secure", // Property name. - N_( "" ), // Property description. + N_( "Is connection secure" ), // Property description. lib3270_is_secure, // Get value. NULL // Set value. }, @@ -101,28 +101,28 @@ { "pconnected", // Property name. - N_( "" ), // Property description. + "", // Property description. lib3270_pconnected, // Get value. NULL // Set value. }, { - "half_connected", // Property name. - N_( "" ), // Property description. - lib3270_half_connected, // Get value. - NULL // Set value. + "half_connected", // Property name. + "", // Property description. + lib3270_half_connected, // Get value. + NULL // Set value. }, { "neither", // Property name. - N_( "" ), // Property description. + "", // Property description. lib3270_in_neither, // Get value. NULL // Set value. }, { "ansi", // Property name. - N_( "" ), // Property description. + "", // Property description. lib3270_in_ansi, // Get value. NULL // Set value. }, @@ -136,14 +136,14 @@ { "sscp", // Property name. - N_( "" ), // Property description. + "", // Property description. lib3270_in_sscp, // Get value. NULL // Set value. }, { "tn3270e", // Property name. - N_( "" ), // Property description. + "", // Property description. lib3270_in_tn3270e, // Get value. NULL // Set value. }, @@ -179,7 +179,7 @@ /* { "", // Property name. - N_( "" ), // Property description. + "", // Property description. NULL, // Get value. NULL // Set value. }, @@ -268,7 +268,7 @@ /* { "", // Property name. - N_( "" ), // Property description. + "", // Property description. NULL, // Get value. NULL // Set value. }, @@ -444,7 +444,7 @@ /* { "", // Property name. - N_( "" ), // Property description. + "", // Property description. , // Get value. NULL // Set value. }, diff --git a/src/lib3270/testprogram/testprogram.c b/src/lib3270/testprogram/testprogram.c index bba32a9..cc73b05 100644 --- a/src/lib3270/testprogram/testprogram.c +++ b/src/lib3270/testprogram/testprogram.c @@ -73,13 +73,14 @@ int main(int argc, char *argv[]) lib3270_set_toggle(h,LIB3270_TOGGLE_SSL_TRACE,1); rc = lib3270_reconnect(h,120); - printf("\nConnect %s exits with rc=%d\n",lib3270_get_url(h),rc); + printf("\nConnect exits with rc=%d\n",rc); - lib3270_wait_for_ready(h,10); - - lib3270_enter(h); - - lib3270_wait_for_ready(h,10); + if(!rc) + { + lib3270_wait_for_ready(h,10); + lib3270_enter(h); + lib3270_wait_for_ready(h,10); + } lib3270_session_free(h); -- libgit2 0.21.2