]> git.ozlabs.org Git - ppp.git/commitdiff
pppd: Call auth-up-notifier even if 'noauth' is specified (#216)
authorEivind Næss <eivnaes@yahoo.com>
Mon, 4 Jan 2021 06:53:40 +0000 (22:53 -0800)
committerGitHub <noreply@github.com>
Mon, 4 Jan 2021 06:53:40 +0000 (17:53 +1100)
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 <eivnaes@yahoo.com>
pppd/auth.c

index ffa0e14afb097e775e18cc0257f0e56d7256d9a9..b1271c4f8739e4631740a44880586b4d3e92ceb9 100644 (file)
@@ -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;