summaryrefslogtreecommitdiff
path: root/net/rdesktop-devel/files
diff options
context:
space:
mode:
authorAssar Westerlund <assar@FreeBSD.org>2001-08-28 13:47:15 +0000
committerAssar Westerlund <assar@FreeBSD.org>2001-08-28 13:47:15 +0000
commitdef9cc8a256c9bd105c215eb65f11f80e11b5a8e (patch)
tree663cbaff895a058b0326943b1990585c5e826832 /net/rdesktop-devel/files
parent- Update to version 1.4 (diff)
patch around crashes for hostnames longer than 15 characters
PR: ports/30159 Approved by: chris@aims.com.au (maintainer)
Notes
Notes: svn path=/head/; revision=47021
Diffstat (limited to 'net/rdesktop-devel/files')
-rw-r--r--net/rdesktop-devel/files/patch-aa12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/rdesktop-devel/files/patch-aa b/net/rdesktop-devel/files/patch-aa
new file mode 100644
index 000000000000..e9b7e1fb54eb
--- /dev/null
+++ b/net/rdesktop-devel/files/patch-aa
@@ -0,0 +1,12 @@
+--- secure.c~ Mon Aug 27 16:33:56 2001
++++ secure.c Mon Aug 27 16:36:19 2001
+@@ -387,6 +387,9 @@
+ {
+ int hostlen = 2 * ( hostname == 0 ? 0 : strlen (hostname));
+
++ if (hostlen > 30)
++ hostlen = 30;
++
+ out_uint16_be (s, 5); /* unknown */
+ out_uint16_be (s, 0x14);
+ out_uint8 (s, 0x7c);