Reset buffer offsets on connection close (rhbz 620843)

This commit is contained in:
Daniel P. Berrange 2010-08-06 10:15:21 +01:00
parent fc1282273d
commit 20e0e77bd3
2 changed files with 9 additions and 3 deletions

View File

@ -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~

View File

@ -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@redhat.com> - 0.4.1-5
- Reset buffer offsets on connection close (rhbz 620843)
* Thu Aug 5 2010 Daniel P. Berrange <berrange@redhat.com> - 0.4.1-4
- Reset buffer pointer on connection close (rhbz 620843)