hostlist for router fallback_hosts must be mutable
[exim.git] / src / src / route.c
index 1d87b079a7b3c6a2ecd552092581a5c71618205d..5aed06b4f4fbc2f9b1dbf0563d300fad581c0e7c 100644 (file)
@@ -288,7 +288,12 @@ for (router_instance * r = routers; r; r = r->next)
 
   /* Build a host list if fallback hosts is set. */
 
-  host_build_hostlist(&(r->fallback_hostlist), r->fallback_hosts, FALSE);
+    {
+    int old_pool = store_pool;
+    store_pool = POOL_PERM;
+    host_build_hostlist(&r->fallback_hostlist, r->fallback_hosts, FALSE);
+    store_pool = old_pool;
+    }
 
   /* Check redirect_router and pass_router are valid */