prelude-correlator/master: Catch exception to secure Timer callback.

[email protected] Wed, 17 Jun 2009 18:37:07 +0200 (CEST)
Newsgroups gmane.comp.security.ids.prelude.cvs
Message-ID <[email protected]>
commit c7abd9f715c598a9c808e7ea26ded51d0913465b
Author: Yoann Vandoorselaere <[email protected]>
Date:   Wed Jun 17 17:59:18 2009 +0200

    Catch exception to secure Timer callback.


========================================

 PreludeCorrelator/context.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

========================================

diff --git a/PreludeCorrelator/context.py b/PreludeCorrelator/context.py
index 94b76d4..7ca1215 100644
--- a/PreludeCorrelator/context.py
+++ b/PreludeCorrelator/context.py
@@ -37,7 +37,10 @@ class Timer:
 
         def _timerExpireCallback(self):
                 self.stop()
-                self._cb(self)
+                try:
+                        self._cb(self)
+                except:
+                        pass
 
         def running(self):
                 return self._start != None
_______________________________________________
Prelude-cvslog site list
[email protected]
http://lists.prelude-ids.org/mailman/listinfo/prelude-cvslog