summaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-14 17:22:59 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-12-14 17:22:59 +0000
commitf810c45815c50ca4a68e2dd51ea174ffb7c1a312 (patch)
treebc4ca05443a051bf739f9ab1a01f045e3c564b45 /sbin/ifconfig
parent2bd5f0a63cacff999b67c3a77f99f1873ff8a205 (diff)
make ifconfig return with failure of bridge_rule; ok claudio
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifconfig.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 43f7d4c7cf1..b0c12e462f7 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ifconfig.c,v 1.225 2009/12/14 17:14:56 deraadt Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.226 2009/12/14 17:22:58 deraadt Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
@@ -655,8 +655,7 @@ main(int argc, char *argv[])
#ifndef SMALL
if (strcmp(*argv, "rule") == 0) {
argc--, argv++;
- bridge_rule(argc, argv, -1);
- return;
+ return bridge_rule(argc, argv, -1);
}
#endif
if (p->c_name == 0 && setaddr)