aboutsummaryrefslogtreecommitdiffstats
path: root/main/heimdal/telnetd.patch
blob: 9c4d10386c790b8a963083def4a4a9b3044ea9ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: crypto/heimdal/appl/telnet/libtelnet/encrypt.c
===================================================================
--- appl/telnet/libtelnet/encrypt.c	(revision 228798)
+++ appl/telnet/libtelnet/encrypt.c	(working copy)
@@ -736,6 +736,9 @@
     int dir = kp->dir;
     int ret = 0;
 
+    if (len > MAXKEYLEN)
+        len = MAXKEYLEN;
+
     if (!(ep = (*kp->getcrypt)(*kp->modep))) {
 	if (len == 0)
 	    return;