[pan2/osx: 1/3] quick fix for gnome-keyring
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/osx: 1/3] quick fix for gnome-keyring
- Date: Sat, 14 Jan 2012 10:16:52 +0000 (UTC)
commit c418a6e80d069fac8f820427be9d2821e187db50
Author: Heinrich MÃller <henmull src gnome org>
Date: Fri Jan 13 01:11:18 2012 +0100
quick fix for gnome-keyring
pan/data-impl/data-impl.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/pan/data-impl/data-impl.cc b/pan/data-impl/data-impl.cc
index 60e76b5..f290035 100644
--- a/pan/data-impl/data-impl.cc
+++ b/pan/data-impl/data-impl.cc
@@ -162,8 +162,10 @@ DataImpl :: password_decrypt (PasswordData* pw) const
"server", pw->server.c_str(),
NULL);
- if (pwd) pw->pw = pwd;
+ std::string tmp;
+ if (pwd) tmp = pwd;
gnome_keyring_free_password(pwd);
+ pw->pw = tmp;
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]