[Pkg-libvirt-commits] [SCM] libgtk-vnc Debian packaging branch, master, updated. debian/0.4.1-2-2-g66baa3f
Laurent Léonard
laurent at open-minds.org
Sat Aug 28 01:06:06 UTC 2010
The following commit has been merged in the master branch:
commit 3e55ef64ec23ff71b30958735ae6aced39c8f092
Author: Laurent Léonard <laurent at open-minds.org>
Date: Sat Aug 28 02:56:02 2010 +0200
New patch 0002-Reset-xmit_buffer-fields-to-fix-reconnect.patch
diff --git a/debian/patches/0002-Reset-xmit_buffer-fields-to-fix-reconnect.patch b/debian/patches/0002-Reset-xmit_buffer-fields-to-fix-reconnect.patch
new file mode 100644
index 0000000..b3f2b34
--- /dev/null
+++ b/debian/patches/0002-Reset-xmit_buffer-fields-to-fix-reconnect.patch
@@ -0,0 +1,30 @@
+From: Daniel P. Berrange <dan at berrange.com>
+Date: Sun, 15 Aug 2010 17:30:19 +0000
+Subject: [PATCH] Reset xmit_buffer fields to fix reconnect
+
+If a vnc_connection object was closed and reopened old data in the xmit_buffer fields would cause a crash, since it was not re-initialized
+
+Origin: upstream, http://git.gnome.org/browse/gtk-vnc/commit/?id=55d0ee7ba77e15ac5bcf59ff6160170d5b67784f
+---
+ src/vncconnection.c | 7 ++++++-
+ 1 files changed, 6 insertions(+), 1 deletions(-)
+
+diff --git a/src/vncconnection.c b/src/vncconnection.c
+index 03197de..a4a9835 100644
+--- a/src/vncconnection.c
++++ b/src/vncconnection.c
+@@ -4191,7 +4191,12 @@ static void vnc_connection_close(VncConnection *conn)
+ priv->name = NULL;
+ }
+
+- g_free (priv->xmit_buffer);
++ if (priv->xmit_buffer) {
++ g_free(priv->xmit_buffer);
++ priv->xmit_buffer = NULL;
++ priv->xmit_buffer_size = 0;
++ priv->xmit_buffer_capacity = 0;
++ }
+
+ if (priv->cred_username) {
+ g_free(priv->cred_username);
+--
diff --git a/debian/patches/series b/debian/patches/series
index 843b232..0452e4a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-fix-build-with-xulrunner-1.9.1.patch
+0002-Reset-xmit_buffer-fields-to-fix-reconnect.patch
--
libgtk-vnc Debian packaging
More information about the Pkg-libvirt-commits
mailing list