More fixes

This commit is contained in:
Pinga 2023-12-14 13:39:07 +02:00
parent 9fe3b3f20a
commit 8a144a6add
2 changed files with 77 additions and 34 deletions

View file

@ -493,6 +493,12 @@ function processHostCreate($conn, $db, $xml, $clid, $database_type, $trans) {
foreach ($host_addr_list as $node) {
$addr = (string) $node;
if (empty($addr)) {
sendEppError($conn, $db, 2303, 'Error: Address is empty', $clTRID, $trans);
return;
}
$addr_type = isset($node['ip']) ? (string) $node['ip'] : 'v4';
if ($addr_type == 'v6') {