doc/share/security/patches/SA-11:08/telnetd.patch
Bjoern A. Zeeb 3571e53040 Import FreeBSD Security Advisories and Errata Notices, as well as their
patches for easier mirroring, to eliminate a special copy, to make
www.freebsd.org/security a full copy of security.freebsd.org and be
eventually be the same.

For now files are just sitting there.   The symlinks are missing.

Discussed on:	www (repository location)
Discussed with:	simon (so)
2012-08-15 06:19:40 +00:00

28 lines
851 B
Diff

Index: crypto/heimdal/appl/telnet/libtelnet/encrypt.c
===================================================================
--- crypto/heimdal/appl/telnet/libtelnet/encrypt.c (revision 228798)
+++ crypto/heimdal/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;
Index: contrib/telnet/libtelnet/encrypt.c
===================================================================
--- contrib/telnet/libtelnet/encrypt.c (revision 228798)
+++ contrib/telnet/libtelnet/encrypt.c (working copy)
@@ -721,6 +721,9 @@
int dir = kp->dir;
int ret = 0;
+ if (len > MAXKEYLEN)
+ len = MAXKEYLEN;
+
if (!(ep = (*kp->getcrypt)(*kp->modep))) {
if (len == 0)
return;