libipsec: Fix min/max SPI
authorTobias Brunner <tobias@strongswan.org>
Thu, 2 Mar 2017 09:11:32 +0000 (10:11 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 2 Mar 2017 09:11:32 +0000 (10:11 +0100)
src/libipsec/ipsec_sa_mgr.c

index 031d599..314785f 100644 (file)
@@ -401,9 +401,9 @@ METHOD(ipsec_sa_mgr_t, get_spi, status_t,
        uint32_t spi_min, spi_max, spi_new;
 
        spi_min = lib->settings->get_int(lib->settings, "%s.spi_min",
-                                                                        KERNEL_SPI_MIN, lib->ns);
+                                                                        0x00000000, lib->ns);
        spi_max = lib->settings->get_int(lib->settings, "%s.spi_max",
-                                                                        KERNEL_SPI_MAX, lib->ns);
+                                                                        0xffffffff, lib->ns);
        if (spi_min > spi_max)
        {
                spi_new = spi_min;