aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pppd/options.c
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2002-05-06 08:39:43 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2002-05-06 08:39:43 +0000
commitd3275eea44acbcbe963f0b93e01446a2ce9d3cb9 (patch)
treef907968c191a4c207797f3d8989e33b54039bcfb /usr.sbin/pppd/options.c
parentfac09f6b79c3f1f22c5d8da0cd70b4e6e9b9359d (diff)
Notes
Diffstat (limited to 'usr.sbin/pppd/options.c')
-rw-r--r--usr.sbin/pppd/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pppd/options.c b/usr.sbin/pppd/options.c
index 2b70bc0e8ccd..d1e679b2aa43 100644
--- a/usr.sbin/pppd/options.c
+++ b/usr.sbin/pppd/options.c
@@ -1812,7 +1812,7 @@ setnetmask(argv)
{
struct in_addr mask;
- if ((inet_aton(*argv, &mask)) == -1 || (netmask & ~mask.s_addr)) {
+ if (!inet_aton(*argv, &mask) || (netmask & ~mask.s_addr)) {
fprintf(stderr, "Invalid netmask %s\n", *argv);
return (0);
}