src/utils_cache.c: Add a missing `continue'.
authorPaul Sadauskas <psadauskas@gmail.com>
Wed, 8 Jul 2009 08:49:23 +0000 (10:49 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 8 Jul 2009 08:49:23 +0000 (10:49 +0200)
tokkee on IRC & I think we found a bug with utils_cache.c. The uc_check_timeout
function is missing a continue after the "uninteresting" service check, that
causes a key to be null.

This probably caused an assertion failure in cache_compare as reported by
Mariusz.

src/utils_cache.c

index 3cfe3a1..2f70ffe 100644 (file)
@@ -305,6 +305,7 @@ int uc_check_timeout (void)
       sfree (keys[i]);
       sfree (key);
       cache_free (ce);
+      continue;
     }
 
     /* If we get here, the value is ``interesting''. Query the record from the