Don't continue if we have found all dot in host name

* close #207
This commit is contained in:
azerttyu 2017-11-06 17:05:23 +01:00
parent 317bf8739c
commit 1ec4ff28d6
1 changed files with 4 additions and 0 deletions

View File

@ -469,6 +469,10 @@ class m_ssl {
break;
}
$offset = strpos($fqdn, ".", $offset+1);
//No more dot, we prevent an infinite loop
if (!$offset) {
break;
}
} while (true);
if (!$found) {
echo "FATAL: didn't found fqdn $fqdn in sub_domaines table !\n";