diff options
| author | Kris Kennaway <kris@FreeBSD.org> | 2002-10-19 10:27:25 +0000 |
|---|---|---|
| committer | Kris Kennaway <kris@FreeBSD.org> | 2002-10-19 10:27:25 +0000 |
| commit | 15a79b97ac258fdb0b7309d00ef5bffcf8ac2f4b (patch) | |
| tree | 5ba15972212caa0369ff0205d7dd28ddf944be9d /net/SSLtelnet/files/patch-am | |
| parent | Don't (badly) rewrite CFLAGS, assume the user knows what he/she is doing. (diff) | |
Re-add SSLtelnet, with patch (patch-an) to fix the security vulnerability
described in FreeBSD-SA-01:49.telnetd
Submitted by: kondo hiroshi <kondo@ysyslab.co.jp>
PR: ports/42676
Diffstat (limited to 'net/SSLtelnet/files/patch-am')
| -rw-r--r-- | net/SSLtelnet/files/patch-am | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/net/SSLtelnet/files/patch-am b/net/SSLtelnet/files/patch-am new file mode 100644 index 000000000000..a385599eea64 --- /dev/null +++ b/net/SSLtelnet/files/patch-am @@ -0,0 +1,43 @@ +--- telnet/commands.c.old Sun Jan 7 10:03:38 2001 ++++ telnet/commands.c Sun Jan 7 10:16:53 2001 +@@ -55,7 +55,7 @@ + #include <netdb.h> + #include <ctype.h> + #include <pwd.h> +-#include <varargs.h> ++#include <stdarg.h> + #include <errno.h> + + #include <arpa/telnet.h> +@@ -100,7 +100,8 @@ + extern char **genget(); + extern int Ambiguous(); + +-static call(); ++typedef int (*intrtn_t)(); ++static int call(intrtn_t, ...); + + typedef struct { + char *name; /* command name */ +@@ -2550,18 +2551,14 @@ + */ + + /*VARARGS1*/ +- static +-call(va_alist) +- va_dcl ++ static int ++call(intrtn_t routine, ...) + { + va_list ap; +- typedef int (*intrtn_t)(); +- intrtn_t routine; + char *args[100]; + int argno = 0; + +- va_start(ap); +- routine = (va_arg(ap, intrtn_t)); ++ va_start(ap, routine); + while ((args[argno++] = va_arg(ap, char *)) != 0) { + ; + } |
