mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-12 04:02:19 +01:00
15 lines
425 B
Diff
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;
|