From 79642e5d8788f071da96cd551aa7a5be7b73bbf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 17 Sep 2013 20:37:33 +0200 Subject: [PATCH] Fix FTBFS --- src/kvpnc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kvpnc.cpp b/src/kvpnc.cpp index b9d120e..991cb06 100644 --- a/src/kvpnc.cpp +++ b/src/kvpnc.cpp @@ -8685,7 +8685,7 @@ void KVpnc::disconnectClicked() delRouteRacoon(); removeIptablesRacoon(); - if ( GlobalConfig->currentProfile->getConnectionType() == VpnAccountData::l2tpd_racoon && ( GlobalConfig->currentProfile->getL2tpDaemon() == "l2tpd" || GlobalConfig->currentProfile->getL2tpDaemon() == "l2tpd" ) ) + if ( GlobalConfig->currentProfile->getConnectionType() == VpnAccountData::l2tpd_racoon && ( GlobalConfig->currentProfile->getL2tpDaemon() == VpnAccountData::l2tpd || GlobalConfig->currentProfile->getL2tpDaemon() == VpnAccountData::l2tpd ) ) { // remove kvpnc entries from secrets file TQFile papSecretsFile ( "/etc/ppp/pap-secrets" ); @@ -10493,7 +10493,7 @@ void KVpnc::disconnectClicked() delRouteRacoon(); removeIptablesRacoon(); - if ( GlobalConfig->currentProfile->getConnectionType() == VpnAccountData::l2tpd_racoon && ( GlobalConfig->currentProfile->getL2tpDaemon() == "l2tpd" || GlobalConfig->currentProfile->getL2tpDaemon() == "l2tpd" ) ) + if ( GlobalConfig->currentProfile->getConnectionType() == VpnAccountData::l2tpd_racoon && ( GlobalConfig->currentProfile->getL2tpDaemon() == VpnAccountData::l2tpd || GlobalConfig->currentProfile->getL2tpDaemon() == VpnAccountData::l2tpd ) ) { if ( GlobalConfig->currentProfile->getAuthMethod() == "chap" || GlobalConfig->currentProfile->getAuthMethod() == "mschap" || GlobalConfig->currentProfile->getAuthMethod() == "mschap-v2" ) {