summaryrefslogtreecommitdiff
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2008-12-07 21:12:53 +0000
committerChad Loder <cloder@cvs.openbsd.org>2008-12-07 21:12:53 +0000
commit4e2872808079e673c9af434dede9223793a6bd63 (patch)
treec3de5846bccb25f00a01299e8d077748186df733 /usr.bin/ftp
parent233f413a8d04b1866ed60d4d4ab0a70af9d654e7 (diff)
time_t is signed, so use INT_MAX rather than UINT_MAX when parsing a time_t
with strtonum
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/cookie.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ftp/cookie.c b/usr.bin/ftp/cookie.c
index 18fbb711b3d..9fde85a245d 100644
--- a/usr.bin/ftp/cookie.c
+++ b/usr.bin/ftp/cookie.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cookie.c,v 1.3 2008/06/25 21:15:19 martynas Exp $ */
+/* $OpenBSD: cookie.c,v 1.4 2008/12/07 21:12:07 cloder Exp $ */
/*
* Copyright (c) 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
*
@@ -135,7 +135,7 @@ cookie_load(void)
* rely on sizeof(time_t) being 4
*/
ck->expires = strtonum(param, 0,
- UINT_MAX, &estr);
+ INT_MAX, &estr);
if (estr) {
if (errno == ERANGE)
ck->flags |= F_NOEXPIRY;