diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:36:41 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:36:41 +0000 |
commit | 940febef99fdb734a71bce08468eda5c4a9725ca (patch) | |
tree | 513a6d740ae342f31f6b89b089b736bf6c2ba6a4 /0003-libvncserver-auth-don-t-keep-security-handlers-from-.patch | |
parent | 0b163a7265a7e2552c5bb704174fe7908f4f5a73 (diff) |
automatic import of gnome-remote-desktopopeneuler24.03_LTS
Diffstat (limited to '0003-libvncserver-auth-don-t-keep-security-handlers-from-.patch')
-rw-r--r-- | 0003-libvncserver-auth-don-t-keep-security-handlers-from-.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/0003-libvncserver-auth-don-t-keep-security-handlers-from-.patch b/0003-libvncserver-auth-don-t-keep-security-handlers-from-.patch new file mode 100644 index 0000000..2f736d0 --- /dev/null +++ b/0003-libvncserver-auth-don-t-keep-security-handlers-from-.patch @@ -0,0 +1,32 @@ +From 2a77dd86a97fa5f4735f678599cea839ba09009c Mon Sep 17 00:00:00 2001 +From: Christian Beier <info@christianbeier.net> +Date: Sun, 9 Aug 2020 20:11:26 +0200 +Subject: [PATCH 3/4] libvncserver/auth: don't keep security handlers from + previous runs + +Whyohsoever security handlers are stored in a variable global to the +application, not in the rfbScreen struct. This meant that security +handlers registered once would stick around forever before this commit. +--- + libvncserver/auth.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/libvncserver/auth.c b/libvncserver/auth.c +index 55e0b3c9..fc74c800 100644 +--- a/libvncserver/auth.c ++++ b/libvncserver/auth.c +@@ -264,9 +264,11 @@ rfbSendSecurityTypeList(rfbClientPtr cl, + primaryType = determinePrimarySecurityType(cl); + switch (primaryType) { + case rfbSecTypeNone: ++ rfbUnregisterSecurityHandler(&VncSecurityHandlerVncAuth); + rfbRegisterSecurityHandler(&VncSecurityHandlerNone); + break; + case rfbSecTypeVncAuth: ++ rfbUnregisterSecurityHandler(&VncSecurityHandlerNone); + rfbRegisterSecurityHandler(&VncSecurityHandlerVncAuth); + break; + } +-- +2.28.0 + |