summaryrefslogtreecommitdiff
path: root/usr.bin/telnet/authenc.c
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2005-02-27 15:46:43 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2005-02-27 15:46:43 +0000
commit5df29dba0aaa8b713981d5052ffbdb2842096a9d (patch)
tree46df7f4866f5b3706f63837d8895c4589b6f55c5 /usr.bin/telnet/authenc.c
parent92dce8543dd408cbcfbf15fb6eae100f6d577ff3 (diff)
- only send exported vars (based on a diff from Solar Designer)
- fix some buffer overflows (also some Solar Designer input) ok deraadt@ cloder@
Diffstat (limited to 'usr.bin/telnet/authenc.c')
-rw-r--r--usr.bin/telnet/authenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/telnet/authenc.c b/usr.bin/telnet/authenc.c
index 2b8cae647ec..8aa46027e32 100644
--- a/usr.bin/telnet/authenc.c
+++ b/usr.bin/telnet/authenc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authenc.c,v 1.6 2003/06/03 02:56:18 millert Exp $ */
+/* $OpenBSD: authenc.c,v 1.7 2005/02/27 15:46:42 otto Exp $ */
/* $NetBSD: authenc.c,v 1.5 1996/02/28 21:03:52 thorpej Exp $ */
/*-
@@ -31,7 +31,7 @@
*/
/*
-RCSID("$Id: authenc.c,v 1.6 2003/06/03 02:56:18 millert Exp $");
+RCSID("$Id: authenc.c,v 1.7 2005/02/27 15:46:42 otto Exp $");
*/
#include "telnet_locl.h"
@@ -80,7 +80,7 @@ telnet_spin()
telnet_getenv(val)
const char *val;
{
- return((char *)env_getvalue((unsigned char *)val));
+ return((char *)env_getvalue((unsigned char *)val, 0));
}
char *