summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2012-07-24 07:50:43 +0000
committerLars Wendler <polynomial-c@gentoo.org>2012-07-24 07:50:43 +0000
commit482e261ddf37769cb83b1913028507192a8a8f48 (patch)
treeec86a65d9b1cad62d0475fb1a3dff2ebccb07de1 /app-emulation/virtualbox/files/virtualbox-4.1.18-ipv6_vnc.patch
parentfix nss-ldapd to download the right version (diff)
downloadgentoo-2-482e261ddf37769cb83b1913028507192a8a8f48.tar.gz
gentoo-2-482e261ddf37769cb83b1913028507192a8a8f48.tar.bz2
gentoo-2-482e261ddf37769cb83b1913028507192a8a8f48.zip
Fixed crash when opening a VNC connection via IPv6 (bug #425698)
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'app-emulation/virtualbox/files/virtualbox-4.1.18-ipv6_vnc.patch')
-rw-r--r--app-emulation/virtualbox/files/virtualbox-4.1.18-ipv6_vnc.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/app-emulation/virtualbox/files/virtualbox-4.1.18-ipv6_vnc.patch b/app-emulation/virtualbox/files/virtualbox-4.1.18-ipv6_vnc.patch
new file mode 100644
index 000000000000..8f50aba1c692
--- /dev/null
+++ b/app-emulation/virtualbox/files/virtualbox-4.1.18-ipv6_vnc.patch
@@ -0,0 +1,20 @@
+diff -aur vanilla/VirtualBox-4.1.18/src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp changed/VirtualBox-4.1.18/src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp
+--- vanilla/VirtualBox-4.1.18/src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp 2012-06-20 15:15:53.000000000 +0200
++++ changed/VirtualBox-4.1.18/src/VBox/Frontends/VBoxHeadless/FramebufferVNC.cpp 2012-07-16 16:24:22.448349886 +0200
+@@ -88,8 +88,16 @@
+
+ vncServer = rfbGetScreen(0, NULL, mWidth, mHeight, 8, 3, 1);
+ vncServer->screenData = (void*)this;
++#ifdef LIBVNCSERVER_IPv6
++ if (mVncPort) {
++ vncServer->port = mVncPort;
++ vncServer->ipv6port = mVncPort;
++ }
++#else
+ if (mVncPort)
+ vncServer->port = mVncPort;
++#endif
++
+ char *pszDesktopName;
+ rc = RTStrAPrintf(&pszDesktopName, "%s - VirtualBox", pszName);
+ if (rc >= 0)