
sps at caldera
Dec 13, 2000, 6:12 AM
Post #1 of 1
(902 views)
Permalink
|
|
[PATCH] mod_backhand-1.1.0 uninitialized variable
|
|
--u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Hi, there seems to be another uninitialized variable in builtins.c of mod_backhand-1.1.0 that can cause the byCost function to segfault. Patch attached. -- Stephan Seyboth - Developer Caldera (Deutschland) GmbH http://www.caldera.de/ --u3/rZRmxL6MmkK24 Content-Type: application/x-patch Content-Disposition: attachment; filename="mod_backhand-1.1.0-bycost.patch" diff -u mod_backhand-1.1.0.orig/builtins.c mod_backhand-1.1.0/builtins.c --- mod_backhand-1.1.0.orig/builtins.c Wed Sep 6 02:16:58 2000 +++ mod_backhand-1.1.0/builtins.c Mon Dec 11 18:16:03 2000 @@ -60,6 +60,7 @@ max_arriba = find_highest_arriba(serverstats); lastcalc = serverstats[0].mtime; } + mycount = 0; for (i = 0; i < *n; i++) { float cpupower = (float)serverstats[servers[i].id].load/1000.0; --u3/rZRmxL6MmkK24--
|