]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2292] Unrelated: fix possible in None bug (not reproduced)
authorMichal 'vorner' Vaner <vorner@vorner.cz>
Mon, 3 Jun 2013 12:05:13 +0000 (14:05 +0200)
committerMichal 'vorner' Vaner <vorner@vorner.cz>
Mon, 3 Jun 2013 12:05:13 +0000 (14:05 +0200)
In case the EINTR would happen, the reads variable would contain None,
making the in operator fail.

src/bin/zonemgr/zonemgr.py.in

index fcb929a411dec4507efd95fcf07dd67652199684..71c7aae1c6ac592d5537d57c222b5da4daaece99 100755 (executable)
@@ -691,6 +691,7 @@ class Zonemgr:
         try:
             while not self._shutdown_event.is_set():
                 fileno = self._module_cc.get_socket().fileno()
+                reads = []
                 # Wait with select() until there is something to read,
                 # and then read it using a non-blocking read
                 # This may or may not be relevant data for this loop,