summaryrefslogtreecommitdiffstats
path: root/package/ppp/patches/208-fix_status_code.patch
blob: c512354a261976e762dc126ce4345749db835a49 (plain)
1
2
3
4
5
6
7
8
9
10
11
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;