aports/main/heimdal/telnetd.patch
Natanael Copa 28c7fb5e58 main/heimdal: upgrade to 1.6_rc2
rebase patches to use -p1, for consitency with rest of aports tree
2015-04-04 17:12:00 +00:00

15 lines
425 B
Diff

Index: crypto/heimdal/appl/telnet/libtelnet/encrypt.c
===================================================================
--- appl/telnet/libtelnet/encrypt.c (revision 228798)
+++ b/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;