Fix for no entries.
[openresolv] / pdnsd.in
index e78d703eb153fb15a37db68f595f8d6736932237..ff3b9b23ab5a975c579b2a51474c10f6782c73a6 100644 (file)
--- a/pdnsd.in
+++ b/pdnsd.in
@@ -107,8 +107,9 @@ if [ -n "$pdnsd_conf" ]; then
                                fi
                                newconf="$newconf$n"
                        done
-                       newconf="${newconf};\n}\n"
+                       newconf="${newconf};\n"
                fi
+               newconf="${newconf}}\n"
        fi
 
        for d in $DOMAINS; do