From 7c2fbc794f0aff2870a441d05be0de51ddc5c75b Mon Sep 17 00:00:00 2001 From: Bojan Smojver Date: Mon, 31 Aug 2020 22:17:49 +1000 Subject: [PATCH] Add patch for uninitialised return code (supposedly - only s390x). --- xrdp-0.9.14-vnc-rc.patch | 12 ++++++++++++ xrdp.spec | 1 + 2 files changed, 13 insertions(+) create mode 100644 xrdp-0.9.14-vnc-rc.patch diff --git a/xrdp-0.9.14-vnc-rc.patch b/xrdp-0.9.14-vnc-rc.patch new file mode 100644 index 0000000..ea95d3b --- /dev/null +++ b/xrdp-0.9.14-vnc-rc.patch @@ -0,0 +1,12 @@ +diff -ruN xrdp-0.9.14-v/vnc/vnc.c xrdp-0.9.14/vnc/vnc.c +--- xrdp-0.9.14-v/vnc/vnc.c 2020-08-26 12:32:22.000000000 +1000 ++++ xrdp-0.9.14/vnc/vnc.c 2020-08-31 22:17:02.664465069 +1000 +@@ -1423,7 +1423,7 @@ + { + int error; + struct vnc_screen_layout layout = {0}; +- int response_code; ++ int response_code = -1; + + error = find_matching_extended_rect(v, + rect_is_reply_to_us, diff --git a/xrdp.spec b/xrdp.spec index 4f2cd6e..bf3b084 100644 --- a/xrdp.spec +++ b/xrdp.spec @@ -34,6 +34,7 @@ Patch6: xrdp-0.9.14-log-snprintf.patch Patch7: xrdp-0.9.14-xfree86-evdev.patch Patch8: xrdp-0.9.14-fuse-pointer.patch Patch9: xrdp-0.9.14-arch.patch +Patch10: xrdp-0.9.14-vnc-rc.patch BuildRequires: gcc BuildRequires: libX11-devel