From 9bf371d40bed7f86a4c584f2962db4d7b173504a Mon Sep 17 00:00:00 2001 From: Chris Osborn Date: Wed, 15 Jun 2016 17:30:22 -0700 Subject: [PATCH] Be sure to reset telnet/socket parameters before using. --- src/line.c | 4 ++++ src/modem_core.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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)