Skip to Content.
Sympa Menu

ndt-dev - [ndt] r360 committed - [FIXED Issue #45]: Additional validation of the ifspeed variable durin...

Subject: NDT-DEV email list created

List archive

[ndt] r360 committed - [FIXED Issue #45]: Additional validation of the ifspeed variable durin...


Chronological Thread 
  • From:
  • To:
  • Subject: [ndt] r360 committed - [FIXED Issue #45]: Additional validation of the ifspeed variable durin...
  • Date: Sat, 05 Jun 2010 21:34:40 +0000

Revision: 360
Author:

Date: Sat Jun 5 14:33:40 2010
Log: [FIXED Issue #45]: Additional validation of the ifspeed variable during results generation.
http://code.google.com/p/ndt/source/detail?r=360

Modified:
/trunk/src/web100srv.c

=======================================
--- /trunk/src/web100srv.c Thu May 6 15:47:15 2010
+++ /trunk/src/web100srv.c Sat Jun 5 14:33:40 2010
@@ -1,5 +1,5 @@
/*
-Copyright © 2003 University of Chicago. All rights reserved.
+Copyright (c) 2003 University of Chicago. All rights reserved.
The Web100 Network Diagnostic Tool (NDT) is distributed subject to
the following license conditions:
SOFTWARE LICENSE AGREEMENT
@@ -976,7 +976,7 @@
index = 0;
total = 0;
/* for (j=0; j<10; j++) { */
- if ((ifspeed == -1) || (ifspeed == 0))
+ if ((ifspeed == -1) || (ifspeed == 0) || (ifspeed > 10))
ifspeed = 10;
for (j=0; j<=ifspeed; j++) {
total += links[j];


  • [ndt] r360 committed - [FIXED Issue #45]: Additional validation of the ifspeed variable durin..., ndt, 06/05/2010

Archive powered by MHonArc 2.6.16.

Top of Page