]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ippool - mysql: simplified allocate_find query.
authorThomas Faller <t.faller@stiegeler.com>
Tue, 12 May 2020 18:56:45 +0000 (20:56 +0200)
committerAlan DeKok <aland@freeradius.org>
Tue, 2 Jun 2020 21:15:21 +0000 (17:15 -0400)
raddb/mods-config/sql/ippool/mysql/queries.conf

index 5b01cd5c3a1e0326ec42197ff62afcc4a084bdb5..f48ff996358a4ff93dc0dfcb2a21a6b4c7cc1133 100644 (file)
@@ -90,7 +90,7 @@ allocate_find = "\
        SELECT framedipaddress FROM ${ippool_table} \
        WHERE pool_name = '%{control:Pool-Name}' \
        AND ( \
-               expiry_time < NOW() OR expiry_time IS NULL OR expiry_time = 0 \
+               expiry_time < NOW() OR expiry_time IS NULL \
                OR ( nasipaddress = '%{NAS-IP-Address}' AND pool_key = '${pool_key}' ) \
        ) \
        ORDER BY \