Don't use SignalBundle if it's not set
Submitted by: Federico G. Schwindt <fgsch@olimpo.com.br>
This commit is contained in:
parent
e8db289f87
commit
edd536143a
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user