summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/rdesktop/files/rdesktop-1.9.0-rdssl_rkey_get_exp_mod.patch')
-rw-r--r--net-misc/rdesktop/files/rdesktop-1.9.0-rdssl_rkey_get_exp_mod.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/net-misc/rdesktop/files/rdesktop-1.9.0-rdssl_rkey_get_exp_mod.patch b/net-misc/rdesktop/files/rdesktop-1.9.0-rdssl_rkey_get_exp_mod.patch
new file mode 100644
index 000000000000..7ac0067da617
--- /dev/null
+++ b/net-misc/rdesktop/files/rdesktop-1.9.0-rdssl_rkey_get_exp_mod.patch
@@ -0,0 +1,26 @@
+From 53ba87dc174175e98332e22355ad8662c02880d6 Mon Sep 17 00:00:00 2001
+From: Markus Beth <markus.beth@zkrd.de>
+Date: Mon, 2 Dec 2019 11:22:13 +0100
+Subject: [PATCH] use correct modulus and exponent in rdssl_rkey_get_exp_mod
+
+---
+ ssl.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ssl.c b/ssl.c
+index 930c7f94..0681a890 100644
+--- a/ssl.c
++++ b/ssl.c
+@@ -307,10 +307,10 @@ rdssl_rkey_get_exp_mod(RDSSL_RKEY * rkey, uint8 * exponent, uint32 max_exp_len,
+ {
+ size_t outlen;
+
+- outlen = (mpz_sizeinbase(modulus, 2) + 7) / 8;
++ outlen = (mpz_sizeinbase(rkey->n, 2) + 7) / 8;
+ if (outlen > max_mod_len)
+ return 1;
+- outlen = (mpz_sizeinbase(exponent, 2) + 7) / 8;
++ outlen = (mpz_sizeinbase(rkey->e, 2) + 7) / 8;
+ if (outlen > max_exp_len)
+ return 1;
+