From edd536143a428472be806266b05eb6740ac92c31 Mon Sep 17 00:00:00 2001 From: brian Date: Fri, 28 Jun 2002 09:33:25 +0000 Subject: Don't use SignalBundle if it's not set Submitted by: Federico G. Schwindt --- usr.sbin/ppp/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'usr.sbin') 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); } -- cgit v1.1