1 diff -urN fwtk.orig/ftp-gw/ftp-gw.c fwtk/ftp-gw/ftp-gw.c
2 --- fwtk.orig/ftp-gw/ftp-gw.c Fri Jul 9 12:24:28 1999
3 +++ fwtk/ftp-gw/ftp-gw.c Fri Jul 9 12:29:46 1999
7 static char **validests = (char **)0;
8 +static char *plugdest = (char *)0;
9 static int blockinput = 0;
10 static int blockoutput = 0;
16 + if(plugdest != (char *)0) {
17 + syslog(LLEV,"fwtkcfgerr: config line %d: cannot specify both -plug-to and -dest",c); } else {
18 if(validests == (char **)0)
19 validests = (char **)malloc(sizeof(char *) * 2);
24 validests[dests + 1] = (char *)0;
35 + if(plugdest == (char *)0) {
36 + if(validests == (char **)0) {
37 + if(gethostbyname(v) == (struct hostent *)0) {
38 + syslog(LLEV,"fwtkcfgerr: config line %d: invalid -plug-to destination: %.100s",c,v);
45 + syslog(LLEV,"fwtkcfgerr: config line %d: cannot specify both -plug-to and -dest",c);
49 + syslog(LLEV,"fwtkcfgerr: config line %d: cannot specify multiple -plug-to destinations",c);
57 if(!strcmp(c->argv[x],"-dest"))
59 + if(!strcmp(c->argv[x],"-plug-to"))
60 + op = accept_setplug;
62 syslog(LLEV,"fwtkcfgerr: bad option line %d: %.100s",c->ln,c->argv[x]);
68 + if(plugdest != (char *)0) {
72 if((p = rindex(av[1],'@')) != (char *)0) {
78 return(sayn(0,noad,sizeof(noad)-1));