Fix infinity loop when network address and
authorIlia Pavlikhin <owl@ow1.in>
Tue, 24 Sep 2019 11:26:52 +0000 (11:26 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 22 Jun 2021 20:25:27 +0000 (22:25 +0200)
 prefix do not match

src/net.c

index 75838e0..22c9d37 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -405,6 +405,7 @@ int reload_configuration(void) {
                        subnet_t *subnet, *s2;
 
                        if(!get_config_subnet(cfg, &subnet)) {
+                               cfg = lookup_config_next(config_tree, cfg);
                                continue;
                        }