summaryrefslogtreecommitdiff
path: root/src/core/os_session.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 15:08:42 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 15:08:42 +0000
commite1f80a1833f93ff302c01bb31ec935ab9621ac59 (patch)
tree54c75e526862793fdd6fe78be5fb8063ddfc6d8c /src/core/os_session.c
parent0374d53d28b227e537768417b6b7f86ab1b5ca65 (diff)
Prevent potential overflows of time values.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2094 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/os_session.c')
-rw-r--r--src/core/os_session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/os_session.c b/src/core/os_session.c
index a1c19113e..e6577f578 100644
--- a/src/core/os_session.c
+++ b/src/core/os_session.c
@@ -224,7 +224,7 @@ class CommandOSException : public Command
return MOD_CONT;
}
- int expires = expiry ? dotime(expiry) : ExceptionExpiry;
+ time_t expires = expiry ? dotime(expiry) : ExceptionExpiry;
if (expires < 0)
{
notice_lang(s_OperServ, u, BAD_EXPIRY_TIME);