@ -480,10 +480,10 @@ exit:
/* Shutdown logging services */
if( log_isopened() ) log_close();
DEB((D_FREE, "good exit"));
#ifdef DEBUG
if( debug_isopened() ) debug_close();
#endif
exit(rc);
}
@ -41,7 +41,7 @@ int answ_system(e_session type, char *connstr, int inetd)
state.inet = TRUE;
else
state.linename = isatty(0) ? port_get_name(ttyname(0)) : "tcpip";
state.linename = isatty(0) ? port_get_name(ttyname(0)) : xstrcpy("tcpip");
if( !inetd )
{