diff options
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c index e826619da2..b2e7645bd8 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -3150,6 +3150,10 @@ config_parse_addr_policy(config_line_t *cfg, debug(LD_CONFIG,"Adding new entry '%s'",ent); *nextp = router_parse_addr_policy_from_string(ent, assume_action); if (*nextp) { + if (addr_mask_get_bits((*nextp)->msk)<0) { + warn(LD_CONFIG, "Address policy element '%s' can't be expressed " + "as a bit prefix.", ent); + } nextp = &((*nextp)->next); } else { warn(LD_CONFIG,"Malformed policy '%s'.", ent); |