[Asterisk-cvs] asterisk cli.c,1.33,1.34

citats at lists.digium.com citats at lists.digium.com
Sun Mar 14 04:17:43 CST 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv25089

Modified Files:
	cli.c 
Log Message:
Make sure time is valid for uptime (bug 1214)


Index: cli.c
===================================================================
RCS file: /usr/cvsroot/asterisk/cli.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- cli.c	6 Mar 2004 09:01:08 -0000	1.33
+++ cli.c	14 Mar 2004 09:11:32 -0000	1.34
@@ -186,6 +186,8 @@
 #define WEEK (DAY*7)
 #define YEAR (DAY*365)
 
+	if (timeval < 0)
+		return NULL;
 	if (timeval > YEAR) {
 		years = (timeval / YEAR);
 		timeval -= (years * YEAR);




More information about the svn-commits mailing list