summaryrefslogtreecommitdiff
path: root/net/rdesktop-devel/files/patch-aa
blob: e9b7e1fb54eb1be774e2234623c965d3a6e6b2f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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);