]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveconf: Removed unnecessary code.
authorTimo Sirainen <tss@iki.fi>
Tue, 20 Jul 2010 20:48:22 +0000 (21:48 +0100)
committerTimo Sirainen <tss@iki.fi>
Tue, 20 Jul 2010 20:48:22 +0000 (21:48 +0100)
src/config/doveconf.c

index 2b39c82b7abb204dfd5daa5c46558359f1655b31..f0a340b849f4e09ee729404373d9232ba26c6bd0 100644 (file)
@@ -302,10 +302,7 @@ config_dump_filter_begin(string_t *str,
        unsigned int indent = 0;
 
        if (filter->local_bits > 0) {
-               str_append_n(str, indent_str, indent*2);
-               str_printfa(str, "local %s",
-                           filter->local_host != NULL ? filter->local_host :
-                           net_ip2addr(&filter->local_net));
+               str_printfa(str, "local %s", filter->local_host);
 
                if (IPADDR_IS_V4(&filter->local_net)) {
                        if (filter->local_bits != 32)
@@ -326,9 +323,7 @@ config_dump_filter_begin(string_t *str,
 
        if (filter->remote_bits > 0) {
                str_append_n(str, indent_str, indent*2);
-               str_printfa(str, "remote %s",
-                           filter->remote_host != NULL ? filter->remote_host :
-                           net_ip2addr(&filter->remote_net));
+               str_printfa(str, "remote %s", filter->remote_host);
 
                if (IPADDR_IS_V4(&filter->remote_net)) {
                        if (filter->remote_bits != 32)