summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-03 09:27:32 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-06-03 09:27:32 +0000
commitb8f9d740a065de2ee47e87127db5d7e677950fef (patch)
tree6b4ce5f49ab64b4b3829b71e1b8b6984e71776a4
parent8cbe8c803387ceaf2bcaba328fe1fb26344c74db (diff)
avoid integer overflow on lifetime value. sync with kame
-rw-r--r--usr.sbin/rtadvd/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c
index 0e077f83857..31c637cbd4b 100644
--- a/usr.sbin/rtadvd/config.c
+++ b/usr.sbin/rtadvd/config.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: config.c,v 1.12 2001/02/05 06:05:08 itojun Exp $ */
-/* $KAME: config.c,v 1.33 2001/02/05 05:52:13 k-sugyou Exp $ */
+/* $OpenBSD: config.c,v 1.13 2001/06/03 09:27:31 itojun Exp $ */
+/* $KAME: config.c,v 1.47 2001/06/02 18:50:46 jinmei Exp $ */
/*
* Copyright (C) 1998 WIDE Project.
@@ -93,7 +93,7 @@ getconfig(intface)
#define MUSTHAVE(var, cap) \
do { \
- int t; \
+ long long t; \
if ((t = agetnum(cap)) < 0) { \
fprintf(stderr, "rtadvd: need %s for interface %s\n", \
cap, intface); \