[gtk-vnc] Reset buffer offsets on connection close (rhbz 620843)

Daniel P. Berrange berrange at fedoraproject.org
Fri Aug 6 09:15:41 UTC 2010


commit 20e0e77bd3d01424862c7b99d8743a81ad41d9c4
Author: Daniel P. Berrange <berrange at redhat.com>
Date:   Fri Aug 6 10:15:21 2010 +0100

    Reset buffer offsets on connection close (rhbz 620843)

 gtk-vnc-0.4.1-close-buffer.patch |    7 +++++--
 gtk-vnc.spec                     |    5 ++++-
 2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gtk-vnc-0.4.1-close-buffer.patch b/gtk-vnc-0.4.1-close-buffer.patch
index 18d9d72..8b5205f 100644
--- a/gtk-vnc-0.4.1-close-buffer.patch
+++ b/gtk-vnc-0.4.1-close-buffer.patch
@@ -1,7 +1,7 @@
 diff -rup gtk-vnc-0.4.1.orig/src/vncconnection.c gtk-vnc-0.4.1.new/src/vncconnection.c
 --- gtk-vnc-0.4.1.orig/src/vncconnection.c	2010-07-14 11:28:15.000000000 +0100
-+++ gtk-vnc-0.4.1.new/src/vncconnection.c	2010-08-05 14:56:40.403911911 +0100
-@@ -4191,7 +4191,10 @@ static void vnc_connection_close(VncConn
++++ gtk-vnc-0.4.1.new/src/vncconnection.c	2010-08-06 10:12:27.621989062 +0100
+@@ -4191,7 +4191,12 @@ static void vnc_connection_close(VncConn
  		priv->name = NULL;
  	}
  
@@ -9,7 +9,10 @@ diff -rup gtk-vnc-0.4.1.orig/src/vncconnection.c gtk-vnc-0.4.1.new/src/vncconnec
 +	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);
+Only in gtk-vnc-0.4.1.new/src: vncconnection.c~
diff --git a/gtk-vnc.spec b/gtk-vnc.spec
index d1a8f3d..91b3fa6 100644
--- a/gtk-vnc.spec
+++ b/gtk-vnc.spec
@@ -13,7 +13,7 @@
 Summary: A GTK widget for VNC clients
 Name: gtk-vnc
 Version: 0.4.1
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: LGPLv2+
 Group: Development/Libraries
 Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/0.4/%{name}-%{version}.tar.bz2
@@ -209,6 +209,9 @@ rm -fr %{buildroot}
 %{_mandir}/man1/gvnccapture.1*
 
 %changelog
+* Fri Aug  6 2010 Daniel P. Berrange <berrange at redhat.com> - 0.4.1-5
+- Reset buffer offsets on connection close (rhbz 620843)
+
 * Thu Aug  5 2010 Daniel P. Berrange <berrange at redhat.com> - 0.4.1-4
 - Reset buffer pointer on connection close (rhbz 620843)
 


More information about the scm-commits mailing list