Package: kvpnc
Version: 0.9.6a-4
Severity: minor
Tags: patch
Hi,
If kvpnc is launched and no wallet is open, there's a password prompt
that appears. Whenever the user "cancels" that prompt, kvpnc crashes
due to a null ptr dereference.
Attached patch should fix the crash, but it might not be a full fix.
Cheers,
--
Raphael Geissert - Debian Developer
www.debian.org - get.debian.net
Index: kvpnc-0.9.6a/src/kvpncconfig.cpp
===================================================================
--- kvpnc-0.9.6a.orig/src/kvpncconfig.cpp
+++ kvpnc-0.9.6a/src/kvpncconfig.cpp
@@ -1013,7 +1013,7 @@ void KVpncConfig::loadOptions()
appendLogEntry(i18n("Wallet is closed, try to open it..."), KVpncEnum::debug);
// Open local wallet
wallet = KWallet::Wallet::openWallet(KWallet::Wallet::LocalWallet(), parent->winId());
- if (wallet->isOpen()) {
+ if (wallet && wallet->isOpen()) {
kwalletOpened = true;
if (KvpncDebugLevel > 2)
appendLogEntry(i18n("Wallet opened."), KVpncEnum::debug);
@@ -1023,7 +1023,7 @@ void KVpncConfig::loadOptions()
appendLogEntry(i18n("Wallet could not be opened."), KVpncEnum::debug);
// ok, we wait some time...
sleep(3);
- if (wallet->isOpen()) {
+ if (wallet && wallet->isOpen()) {
kwalletOpened = true;
if (KvpncDebugLevel > 2)
appendLogEntry(i18n("Wallet opened (second try)."), KVpncEnum::debug);
_______________________________________________
pkg-kde-extras mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-kde-extras