diff options
author | sumikawa <sumikawa@FreeBSD.org> | 2000-01-25 13:54:47 +0000 |
---|---|---|
committer | sumikawa <sumikawa@FreeBSD.org> | 2000-01-25 13:54:47 +0000 |
commit | 348b00703f43edaeb5efe0217f899d8ddd9f1e2d (patch) | |
tree | ab765d25e1d76dc69a68ce4e078cef8e80187a5f /sbin | |
parent | b1253d64a8435ad53086b8e1905dddb81514ba76 (diff) | |
download | FreeBSD-src-348b00703f43edaeb5efe0217f899d8ddd9f1e2d.zip FreeBSD-src-348b00703f43edaeb5efe0217f899d8ddd9f1e2d.tar.gz |
Fix return value check for inet_pton().
Obtained from: KAME Project
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index d250fcc..3a87f51 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -917,7 +917,7 @@ getaddr(which, s, hpp) switch (afamily) { #ifdef INET6 case AF_INET6: - if (inet_pton(AF_INET6, s, (void *)&su->sin6.sin6_addr) == -1) { + if (inet_pton(AF_INET6, s, (void *)&su->sin6.sin6_addr) != 1) { (void) fprintf(stderr, "%s: bad value\n", s); exit(1); } |