Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/pppd/pppd inet_pton() error must be checked with 1....
details: https://anonhg.NetBSD.org/src/rev/3b7dfdb167c2
branches: trunk
changeset: 480795:3b7dfdb167c2
user: itojun <itojun%NetBSD.org@localhost>
date: Thu Jan 20 04:55:52 2000 +0000
description:
inet_pton() error must be checked with 1. see inet_pton(3).
will notify the original author.
diffstat:
usr.sbin/pppd/pppd/ipv6cp.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 0cde7587ee47 -r 3b7dfdb167c2 usr.sbin/pppd/pppd/ipv6cp.c
--- a/usr.sbin/pppd/pppd/ipv6cp.c Thu Jan 20 04:22:05 2000 +0000
+++ b/usr.sbin/pppd/pppd/ipv6cp.c Thu Jan 20 04:55:52 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipv6cp.c,v 1.3 2000/01/19 20:23:46 christos Exp $ */
+/* $NetBSD: ipv6cp.c,v 1.4 2000/01/20 04:55:52 itojun Exp $ */
/*
* ipv6cp.c - PPP IPV6 Control Protocol.
@@ -35,7 +35,7 @@
#if 0
#define RCSID "Id: ipv6cp.c,v 1.3 1999/08/24 05:31:09 paulus Exp "
#else
-__RCSID("$NetBSD: ipv6cp.c,v 1.3 2000/01/19 20:23:46 christos Exp $");
+__RCSID("$NetBSD: ipv6cp.c,v 1.4 2000/01/20 04:55:52 itojun Exp $");
#endif
#endif
@@ -231,7 +231,7 @@
if (comma != p) {
*comma = '\0';
- if (inet_pton(AF_INET6, p, &addr) == 0 || !VALIDID(addr)) {
+ if (inet_pton(AF_INET6, p, &addr) != 1 || !VALIDID(addr)) {
option_error("Illegal interface identifier: %s", p);
return 0;
}
@@ -245,7 +245,7 @@
* If comma last character, the no remote identifier
*/
if (*comma != 0 && *++comma != '\0') {
- if (inet_pton(AF_INET6, comma, &addr) == 0 || !VALIDID(addr)) {
+ if (inet_pton(AF_INET6, comma, &addr) != 1 || !VALIDID(addr)) {
option_error("Illegal interface identifier: %s", comma);
return 0;
}
Home |
Main Index |
Thread Index |
Old Index