From 9f7c27af1b0b3ca29c673574322b2c23f1184803 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 26 Nov 2008 21:02:29 +1100 Subject: [PATCH] Fix authentication on second time around with multilink and persist MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Frédéric Brière reported that when using multilink and persist, pppd would fail to authenticate itself on the second and subsequent times of bringing up a bundle. The reason was that the doing_multilink and multilink_master flags never got reset when the first bundle was destroyed. This adds lines to mp_bundle_terminated to do that. Signed-off-by: Paul Mackerras --- pppd/multilink.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pppd/multilink.c b/pppd/multilink.c index b4748cd..135cab0 100644 --- a/pppd/multilink.c +++ b/pppd/multilink.c @@ -278,8 +278,11 @@ void mp_bundle_terminated() key.dsize = strlen(blinks_id); tdb_delete(pppdb, key); unlock_db(); - -new_phase(PHASE_DEAD); + + new_phase(PHASE_DEAD); + + doing_multilink = 0; + multilink_master = 0; } static void make_bundle_links(int append) -- 2.39.2