Skip to content

Commit

Permalink
lib-master: Check local_name only if both filter and input have it
Browse files Browse the repository at this point in the history
Broken in cedc777a1acf830af4cf0b6e9b0f343c81e20adc
  • Loading branch information
cmouse authored and sirainen committed Feb 26, 2018
1 parent cd6517b commit 5666456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-master/master-service-settings-cache.c
Expand Up @@ -137,7 +137,7 @@ master_service_settings_cache_fix_input(struct master_service_settings_cache *ca
net_is_in_network(&input->remote_ip, &filter->remote_ip,
filter->remote_bits))
found_rip = TRUE;
if (filter->local_name != NULL &&
if (input->local_name != NULL && filter->local_name != NULL &&
dns_match_wildcard(input->local_name, filter->local_name))
found_local_name = TRUE;
filter = filter->next;
Expand Down

0 comments on commit 5666456

Please sign in to comment.