Don't use SignalBundle if it's not set
Submitted by: Federico G. Schwindt <fgsch@olimpo.com.br>
This commit is contained in:
parent
8b4f995acc
commit
23ddebe20f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98970
@ -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