diff options
author | brian <brian@FreeBSD.org> | 1997-11-12 18:47:30 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-12 18:47:30 +0000 |
commit | d99cc94f138fb47191d70c0d7b7241428a189ef0 (patch) | |
tree | 42e568b5f953a265b74e4c676aae7e57462482dd /usr.sbin/ppp/command.c | |
parent | 4feb2f9c7555b299d299f3c7ff031623987361ac (diff) | |
download | FreeBSD-src-d99cc94f138fb47191d70c0d7b7241428a189ef0.zip FreeBSD-src-d99cc94f138fb47191d70c0d7b7241428a189ef0.tar.gz |
Return correct value from "set loopback".
Output "set ?filter deny host|port" rules correctly
with show ?filter.
Submitted by: Dave Bodenstab <imdave@mcs.net>
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index f08421c..025fda0 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: command.c,v 1.99 1997/11/12 02:10:05 brian Exp $ + * $Id: command.c,v 1.100 1997/11/12 16:34:50 brian Exp $ * */ #include <sys/param.h> @@ -183,10 +183,14 @@ static int SetLoopback(struct cmdtab const * cmdlist, int argc, char **argv) { if (argc == 1) - if (!strcasecmp(*argv, "on")) + if (!strcasecmp(*argv, "on")) { VarLoopback = 1; - else if (!strcasecmp(*argv, "off")) + return 0; + } + else if (!strcasecmp(*argv, "off")) { VarLoopback = 0; + return 0; + } return -1; } |