]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
dns.cgi: Fix check for undefined variable
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Jan 2020 19:44:55 +0000 (20:44 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 13 Jan 2020 19:44:55 +0000 (20:44 +0100)
This was positive when zero was returned.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/dns.cgi

index a16d6971db9ac8d22b49960c67b53497b963d85a..ff228422bc3c00a42d41d78681591625673dc1f1 100755 (executable)
@@ -553,7 +553,7 @@ END
                                        $status = &check_nameserver("$nameserver", "ping.ipfire.org", "$settings{'PROTO'}", "$tls_hostname");
                                }
 
-                               if (!$status) {
+                               if (!defined $status) {
                                        $status_short = "$Lang::tr{'disabled'}";
 
                                # DNSSEC Not supported