summaryrefslogtreecommitdiff
path: root/security/AiSSLtelnet
diff options
context:
space:
mode:
authorjun <jun>2001-07-30 15:24:06 +0000
committerjun <jun>2001-07-30 15:24:06 +0000
commitafdae300baa5f42b8b99dc24997e9fdff1d0d046 (patch)
tree92927bb7745630d62e0cc5d2b92265a28faae3c8 /security/AiSSLtelnet
parent11db5116ac74819b6f2f3bf25f51f92e8a5d893e (diff)
downloadpkgsrc-afdae300baa5f42b8b99dc24997e9fdff1d0d046.tar.gz
Apply:
ftp://ftp.netbsd.org/pub/NetBSD/security/patches/SA2001-012-telnetd.patch see also ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2001-012.txt.asc
Diffstat (limited to 'security/AiSSLtelnet')
-rw-r--r--security/AiSSLtelnet/distinfo3
-rw-r--r--security/AiSSLtelnet/patches/patch-aa22
2 files changed, 24 insertions, 1 deletions
diff --git a/security/AiSSLtelnet/distinfo b/security/AiSSLtelnet/distinfo
index 58cddaedb41..37f345c0155 100644
--- a/security/AiSSLtelnet/distinfo
+++ b/security/AiSSLtelnet/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 15:40:29 agc Exp $
+$NetBSD: distinfo,v 1.3 2001/07/30 15:24:06 jun Exp $
SHA1 (AiSSLtelnet-0.142.tar.gz) = dd6a55c03c1885f0c52bc51cc841f68a5e9c874b
Size (AiSSLtelnet-0.142.tar.gz) = 650435 bytes
+SHA1 (patch-aa) = a85128e9301839f12fb6479709e318e6cfa0b71f
diff --git a/security/AiSSLtelnet/patches/patch-aa b/security/AiSSLtelnet/patches/patch-aa
new file mode 100644
index 00000000000..b90645c9955
--- /dev/null
+++ b/security/AiSSLtelnet/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1 2001/07/30 15:24:07 jun Exp $
+
+--- telnetd/telnetd.c.org Tue Jul 31 00:01:12 2001
++++ telnetd/telnetd.c
+@@ -1988,8 +1988,15 @@
+ return;
+ }
+ #endif
+- (void) strcpy(nfrontp, "\r\n[Yes]\r\n");
+- nfrontp += 9;
++ /* Flush outstanding data if possible. If not, and buffers are
++ full, break protocol and send no reply, rather than overflow
++ the buffer.
++ */
++ netflush();
++ if ( (BUFSIZ - (nfrontp - netobuf)) > 9 ) {
++ (void) strcpy(nfrontp, "\r\n[Yes]\r\n");
++ nfrontp += 9;
++ }
+ }
+
+ void