diff options
author | brian <brian@cvs.openbsd.org> | 2002-06-28 09:34:25 +0000 |
---|---|---|
committer | brian <brian@cvs.openbsd.org> | 2002-06-28 09:34:25 +0000 |
commit | 86fea73025c54bcb3f69ab29559519c5f7282019 (patch) | |
tree | f11a92ee25e85d566e5a88a433926cb1e5f71a23 /usr.sbin/ppp | |
parent | 1234a5c68a7c78ee5a19a4c2098e6dfb61dd20ee (diff) |
Don't use SignalBundle if it's not set
Submitted by: Federico G. Schwindt <fgsch@olimpo.com.br>
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/ppp/main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/ppp/ppp/main.c b/usr.sbin/ppp/ppp/main.c index 0df8d30b058..31e74b15c26 100644 --- a/usr.sbin/ppp/ppp/main.c +++ b/usr.sbin/ppp/ppp/main.c @@ -25,7 +25,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: main.c,v 1.33 2002/06/15 01:33:23 brian Exp $ + * $OpenBSD: main.c,v 1.34 2002/06/28 09:34:24 brian Exp $ */ #include <sys/param.h> @@ -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); } |