summaryrefslogtreecommitdiff
path: root/sbin/ping6/ping6.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-04 04:56:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-04 04:56:51 +0000
commitb86e078b5ef25cf60dd0d22506ea8958336956af (patch)
tree044efcdde4f7eac973721714ec42f156b4407b89 /sbin/ping6/ping6.c
parent6c904e098d30bc83a676b9ddaf78edc448535e4c (diff)
Repair tame() error check to be == -1
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r--sbin/ping6/ping6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index efd1a5050eb..287b43b84b8 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ping6.c,v 1.118 2015/10/03 00:53:13 deraadt Exp $ */
+/* $OpenBSD: ping6.c,v 1.119 2015/10/04 04:56:50 deraadt Exp $ */
/* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */
/*
@@ -750,7 +750,7 @@ main(int argc, char *argv[])
if (tame("stdio inet dns", NULL) == -1)
err(1, "tame");
} else {
- if (tame("stdio inet", NULL) != 0)
+ if (tame("stdio inet", NULL) == -1)
err(1, "tame");
}