From 4924c1223ef5e47353ef34892b732c2081096427 Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Thu, 25 May 2023 14:17:53 +0100 Subject: 6.0.23.70 --- L2Code.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'L2Code.c') diff --git a/L2Code.c b/L2Code.c index 78c58c7..ecf0de8 100644 --- a/L2Code.c +++ b/L2Code.c @@ -132,8 +132,6 @@ extern UCHAR * ALIASPTR; UCHAR QSTCALL[7] = {'Q'+'Q','S'+'S','T'+'T',0x40,0x40,0x40,0xe0}; // QST IN AX25 UCHAR NODECALL[7] = {0x9C, 0x9E, 0x88, 0x8A, 0xA6, 0x40, 0xE0}; // 'NODES' IN AX25 FORMAT -extern struct TNCINFO * TNCInfo[41]; // Records are Malloc'd - extern BOOL LogAllConnects; APPLCALLS * APPL; @@ -3856,7 +3854,7 @@ BOOL CheckForListeningSession(struct PORTCONTROL * PORT, MESSAGE * Msg) while (i--) { - if ((CountBits(L4->LISTEN) == 1) && ((1 << ((Msg->PORT & 0x7f) - 1) && L4->LISTEN))) + if ((CountBits64(L4->LISTEN) == 1) && ((1 << ((Msg->PORT & 0x7f) - 1) && L4->LISTEN))) { // See if he is calling our call @@ -3900,7 +3898,7 @@ BOOL CheckForListeningSession(struct PORTCONTROL * PORT, MESSAGE * Msg) // SET UP NEW SESSION (OR RESET EXISTING ONE) - FindLink(Msg->ORIGIN, ourcall, L4->LISTEN, &LINK); + FindLink(Msg->ORIGIN, ourcall, PORT->PORTNUMBER, &LINK); if (LINK == NULL) return FALSE; -- cgit v1.2.3