Fix for when we have a duplicate FTN and we are logging that - Attempt to read property ftn on string

This commit is contained in:
Deon George 2023-09-04 12:10:51 +12:00
parent a5784de9a8
commit 61582fa4da
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@ class Node
case 'ftn_other':
// Ignore any duplicate FTNs that we get
if ($this->ftns_other->search($value) !== FALSE) {
Log::debug(sprintf('%s: - Ignoring Duplicate FTN [%s]',__METHOD__,$value->ftn));
Log::debug(sprintf('%s: - Ignoring Duplicate FTN [%s]',__METHOD__,$value));
break;
}

View File

@ -691,7 +691,7 @@ final class Binkp extends BaseProtocol
$this->node->ftn_other = $rem_aka;
continue;
} else if (! $o->active) {
} elseif (! $o->active) {
Log::alert(sprintf('%s:/ AKA is not active [%s], ignoring',self::LOGKEY,$rem_aka));
continue;
@ -700,7 +700,7 @@ final class Binkp extends BaseProtocol
}
} catch (\Exception $e) {
Log::error(sprintf('%s:! AKA is INVALID [%s] (%s)',self::LOGKEY,$rem_aka,$e->getMessage()));
Log::error(sprintf('%s:! AKA is INVALID [%s] (%d:%s-%s)',self::LOGKEY,$rem_aka,$e->getLine(),$e->getFile(),$e->getMessage()));
$this->msgs(self::BPM_ERR,sprintf('Bad address %s',$rem_aka));
$this->rc = self::S_FAILURE;