mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 11:09:57 +08:00
pppd: fix the exit code in case of authentication failure or other errors
SVN-Revision: 28498
This commit is contained in:
parent
d1c05d734b
commit
2ccd191b76
12
package/ppp/patches/208-fix_status_code.patch
Normal file
12
package/ppp/patches/208-fix_status_code.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
--- a/pppd/main.c
|
||||||
|
+++ b/pppd/main.c
|
||||||
|
@@ -1048,7 +1048,8 @@ get_input()
|
||||||
|
}
|
||||||
|
notice("Modem hangup");
|
||||||
|
hungup = 1;
|
||||||
|
- status = EXIT_HANGUP;
|
||||||
|
+ if (status == EXIT_OK)
|
||||||
|
+ status = EXIT_HANGUP;
|
||||||
|
lcp_lowerdown(0); /* serial link is no longer available */
|
||||||
|
link_terminated(0);
|
||||||
|
return;
|
Loading…
x
Reference in New Issue
Block a user