diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-02 17:09:30 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2002-08-02 17:09:30 +0000 |
commit | 977fa39ace69d23d01d5a62c1c3fda0b55729478 (patch) | |
tree | 679815a52e3602fba90b4a6b819bd7a30132f6b3 /sbin/isakmpd/apps | |
parent | be4543235bb8b2ea010ac14e17ed4c6496d3d727 (diff) |
Check inet_aton() failure with == 0, not == -1; millert@ ok.
Diffstat (limited to 'sbin/isakmpd/apps')
-rw-r--r-- | sbin/isakmpd/apps/certpatch/certpatch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/apps/certpatch/certpatch.c b/sbin/isakmpd/apps/certpatch/certpatch.c index 98b4da69408..cc6cd84fc6f 100644 --- a/sbin/isakmpd/apps/certpatch/certpatch.c +++ b/sbin/isakmpd/apps/certpatch/certpatch.c @@ -1,4 +1,4 @@ -/* $OpenBSD: certpatch.c,v 1.18 2002/06/09 08:13:07 todd Exp $ */ +/* $OpenBSD: certpatch.c,v 1.19 2002/08/02 17:09:29 aaron Exp $ */ /* $EOM: certpatch.c,v 1.11 2000/12/21 14:50:09 ho Exp $ */ /* @@ -186,7 +186,7 @@ main (int argc, char **argv) if (!strcasecmp (IDTYPE_IP, type)) { - if (inet_aton (id, &saddr) == -1) + if (inet_aton (id, &saddr) == 0) { printf ("inet_aton () failed\n"); return (1); |