stop searching other pools if lease successfully released
authorMartin Willi <martin@strongswan.org>
Tue, 3 Mar 2009 14:43:53 +0000 (14:43 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 3 Mar 2009 14:43:53 +0000 (14:43 -0000)
src/charon/plugins/stroke/stroke_attribute.c

index 7591a1e..f850b53 100644 (file)
@@ -307,6 +307,7 @@ static bool release_address(private_stroke_attribute_t *this,
                                {
                                        DBG1(DBG_CFG, "lease %H of %D went offline", address, id);
                                        pool->offline->put(pool->offline, id, (void*)offset);
+                                       found = TRUE;
                                }
                        }
                }