summaryrefslogtreecommitdiffstats
path: root/crypto/telnet/telnetd/authenc.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-07-19 17:48:57 +0000
committerru <ru@FreeBSD.org>2001-07-19 17:48:57 +0000
commit9cac33d71fc5f6846362da63a753c08e90efa427 (patch)
treebe1f96775e90a28babf09a5748699e16c80568d6 /crypto/telnet/telnetd/authenc.c
parent32934481938551563374cb61f766b1f332377ee6 (diff)
downloadFreeBSD-src-9cac33d71fc5f6846362da63a753c08e90efa427.zip
FreeBSD-src-9cac33d71fc5f6846362da63a753c08e90efa427.tar.gz
Fixed the exploitable remote buffer overflow.
Reported on: bugtraq Obtained from: Heimdal, NetBSD Reviewed by: obrien, imp
Diffstat (limited to 'crypto/telnet/telnetd/authenc.c')
-rw-r--r--crypto/telnet/telnetd/authenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/telnet/telnetd/authenc.c b/crypto/telnet/telnetd/authenc.c
index 39a38d4..26a85d2 100644
--- a/crypto/telnet/telnetd/authenc.c
+++ b/crypto/telnet/telnetd/authenc.c
@@ -49,8 +49,7 @@ net_write(str, len)
int len;
{
if (nfrontp + len < netobuf + BUFSIZ) {
- memmove((void *)nfrontp, (void *)str, len);
- nfrontp += len;
+ output_datalen(str, len);
return(len);
}
return(0);
OpenPOWER on IntegriCloud