208-fix_status_code.patch 281 B

123456789101112
  1. --- a/pppd/main.c
  2. +++ b/pppd/main.c
  3. @@ -1048,7 +1048,8 @@ get_input()
  4. }
  5. notice("Modem hangup");
  6. hungup = 1;
  7. - status = EXIT_HANGUP;
  8. + if (status == EXIT_OK)
  9. + status = EXIT_HANGUP;
  10. lcp_lowerdown(0); /* serial link is no longer available */
  11. link_terminated(0);
  12. return;