1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 05:11:46 +02:00

pppd: fix the exit code in case of authentication failure or other errors

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28498 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2011-10-21 01:34:12 +00:00
parent a28c14be78
commit 799c0920c5

View 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;