mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-16 18:14:40 +02:00
fixed #1347: ssh cancel rule install sigsegv SF bug 2973136
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
2010-03-19 vadim <vadim@vk.crocodile.org>
|
||||
|
||||
* SSHCisco.cpp (SSHCisco::stateMachine): fixed SF bug 2973136,
|
||||
fwbuilder bug #1347: ssh 'cancel' rule install sigsegv. Installer
|
||||
caused GUI crash if user hit "Cancel" at just the right
|
||||
moment. Apparently this also depends on the firewall platform
|
||||
(was discovered and reported for Cisco FWSM) and perhaps on how
|
||||
fast it responds to the installer commands.
|
||||
|
||||
* platform/fwsm.xml: fixed SourceForge bug 2973121: Added support
|
||||
for FWSM v4.x
|
||||
|
||||
|
||||
@@ -384,7 +384,11 @@ void SSHCisco::stateMachine()
|
||||
case PUSHING_CONFIG:
|
||||
if ( cmpPrompt(stdoutBuffer, QRegExp(enable_prompt))) // config_prompt)) )
|
||||
{
|
||||
if ( activation_commands.size()!=0 )
|
||||
// see SF bug 2973136 , fwbuilder bug #1347
|
||||
// looks like if user hits Cancel to cancel install at just right
|
||||
// moment, the process can get killed when control is already
|
||||
// inside this block. Adding test for proc != NULL to be sure.
|
||||
if ( activation_commands.size() != 0 && proc != NULL)
|
||||
{
|
||||
QString s;
|
||||
|
||||
@@ -417,7 +421,7 @@ void SSHCisco::stateMachine()
|
||||
emit printStdout_sign( tr("End") + "\n" );
|
||||
// kick it so we get some output from the router and
|
||||
// continue the state machine
|
||||
proc->write("\n");
|
||||
if (proc) proc->write("\n");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user