summaryrefslogtreecommitdiff
path: root/pppd/auth.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2008-07-01 12:27:56 +0000
committerPaul Mackerras <paulus@samba.org>2008-07-01 12:27:56 +0000
commit7a7ed0a1a26961a165fd17183fd161c36a4b088f (patch)
treece5c988a2060a794edde11c42c9a969eeed23514 /pppd/auth.c
parentadd0eafae973567f6aa43156a64bd2533b47df93 (diff)
downloadppp-7a7ed0a1a26961a165fd17183fd161c36a4b088f.tar.gz
Clear hungup in start_link() instead of connect_tty()
Since hungup gets set in get_input(), which is generic, but only cleared in connect_tty(), which is specific to the tty channel type, other channel types were showing various problems on the second and subsequent connections when the persist option was used. This fixes it by clearing hungup in start_link() rather than connect_tty().
Diffstat (limited to 'pppd/auth.c')
-rw-r--r--pppd/auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pppd/auth.c b/pppd/auth.c
index f615fd3..fb71944 100644
--- a/pppd/auth.c
+++ b/pppd/auth.c
@@ -68,7 +68,7 @@
* OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define RCSID "$Id: auth.c,v 1.116 2008/06/25 10:30:36 paulus Exp $"
+#define RCSID "$Id: auth.c,v 1.117 2008/07/01 12:27:56 paulus Exp $"
#include <stdio.h>
#include <stddef.h>
@@ -557,6 +557,7 @@ void start_link(unit)
new_phase(PHASE_SERIALCONN);
+ hungup = 0;
devfd = the_channel->connect();
msg = "Connect script failed";
if (devfd < 0)