Don't use SignalBundle if it's not set

Submitted by: Federico G. Schwindt <fgsch@olimpo.com.br>
This commit is contained in:
brian 2002-06-28 09:33:25 +00:00
parent e8db289f87
commit edd536143a

View File

@ -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);
}