[Pkg-tigervnc-devel] Bug#879866: Patch solving the issue

Pierre Dinh-van pierre-deb at qsdf.org
Thu Oct 26 18:19:06 UTC 2017


Hi,

I tried to find out by myself where the bugs comes from.

I looked at the code upstream, and noticed that they moved the code
responsible for the reply "Unable to query the local user to accept the
connection." a few line up in unix/xserver/hw/vnc/XserverDesktop.cc

https://github.com/TigerVNC/tigervnc/blob/master/unix/xserver/hw/vnc/XserverDesktop.cc#L314

Looking at the code in rfb::VNCServerST::queryResult
XserverDesktop::queryConnection it's quite clear.
The 'queryConnectId' variable which triggers the Message "Another
connection is currently being queried." is set before the code related
to "Unable to query the local user to accept the connection.", which
doesn't reset the 'queryConnectId' variable.

So it makes sense to move the code before the initialisation of the
queryConnectId.

I build 1.7.0+dfsg-7 with the attached patch on top of the debian
patches, and it solves the issue.

I didn't look deeper to see if it as side effects, but since the
upstream developers did it too, I guess it could be nice to patch !

This bug is a kind of DoS since it needs the user to restart Xorg
completely to allow the service to be reached again.

Cheers

Pierre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: queryconnect-timeout.patch
Type: text/x-patch
Size: 965 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-tigervnc-devel/attachments/20171026/92da1cc3/attachment.bin>


More information about the Pkg-tigervnc-devel mailing list