Be sure to reset telnet/socket parameters before using.

This commit is contained in:
Chris Osborn 2016-06-15 17:30:22 -07:00
parent 62b801cd81
commit 9bf371d40b
2 changed files with 4 additions and 1 deletions

View File

@ -77,6 +77,10 @@ int line_connect(modem_config *cfg)
char *addy = cfg->dialno;
/* Reset everything we know about the line, it may not be the same
as last time. */
line_init_config(cfg);
LOG(LOG_INFO, "Connecting");
addy = pb_search(addy);
cfg->line_data.fd = ip_connect(addy);

View File

@ -120,7 +120,6 @@ void mdm_init_config(modem_config *cfg)
dce_init_config(cfg);
sh_init_config(cfg);
line_init_config(cfg);
}
int get_new_cts_state(modem_config *cfg, int up)