diff --git a/src/line.c b/src/line.c index ec14dc8..d2eb3ab 100644 --- a/src/line.c +++ b/src/line.c @@ -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); diff --git a/src/modem_core.c b/src/modem_core.c index 9a8a0fb..42cf38f 100644 --- a/src/modem_core.c +++ b/src/modem_core.c @@ -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)