From: Eivind Næss Date: Mon, 4 Jan 2021 06:53:40 +0000 (-0800) Subject: pppd: Call auth-up-notifier even if 'noauth' is specified (#216) X-Git-Tag: ppp-2.4.9~2 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=16b0e0b2a8e3aa39b5e37486f5e9e3607b6649b7;p=ppp.git pppd: Call auth-up-notifier even if 'noauth' is specified (#216) This will allow client side plug-ins like for SSTP to use the auth-up-notifier hook to process the authentication complete step. Signed-off-by: Eivind Naess --- diff --git a/pppd/auth.c b/pppd/auth.c index ffa0e14..b1271c4 100644 --- a/pppd/auth.c +++ b/pppd/auth.c @@ -876,8 +876,8 @@ network_phase(int unit) /* * If the peer had to authenticate, run the auth-up script now. */ + notify(auth_up_notifier, 0); if (go->neg_chap || go->neg_upap || go->neg_eap) { - notify(auth_up_notifier, 0); auth_state = s_up; if (auth_script_state == s_down && auth_script_pid == 0) { auth_script_state = s_up;