summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-06-28 09:33:25 +0000
committerbrian <brian@FreeBSD.org>2002-06-28 09:33:25 +0000
commitedd536143a428472be806266b05eb6740ac92c31 (patch)
tree194576e37876e1d017f0faf0e0a704b187006ca8 /usr.sbin
parente8db289f878b71c83affa7a670f55a14ff6cc732 (diff)
downloadFreeBSD-src-edd536143a428472be806266b05eb6740ac92c31.zip
FreeBSD-src-edd536143a428472be806266b05eb6740ac92c31.tar.gz
Don't use SignalBundle if it's not set
Submitted by: Federico G. Schwindt <fgsch@olimpo.com.br>
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index 1417dd7..fe5f2dc 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -117,10 +117,13 @@ Cleanup(int excode)
void
AbortProgram(int excode)
{
- server_Close(SignalBundle);
+ if (SignalBundle)
+ server_Close(SignalBundle);
log_Printf(LogPHASE, "PPP Terminated (%s).\n", ex_desc(excode));
- bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN);
- bundle_Destroy(SignalBundle);
+ if (SignalBundle) {
+ bundle_Close(SignalBundle, NULL, CLOSE_STAYDOWN);
+ bundle_Destroy(SignalBundle);
+ }
log_Close();
exit(excode);
}
OpenPOWER on IntegriCloud