summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Dale <richard.dale@codethink.co.uk>2015-06-15 09:07:45 +0000
committerRichard Dale <richard.dale@codethink.co.uk>2015-06-15 09:07:45 +0000
commita4d0c3e324997f30c9f215b64473576ccf585c1b (patch)
tree5c43c134d13ff71d297d2afe7b0dcb4a868f7ae0
parent50f4b793de99167bd66791256d47754fca3674f3 (diff)
downloadppp-a4d0c3e324997f30c9f215b64473576ccf585c1b.tar.gz
fix status code
-rw-r--r--pppd/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pppd/main.c b/pppd/main.c
index b347300..5f1387d 100644
--- 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;