summaryrefslogtreecommitdiff
path: root/Cmd.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-10 22:07:04 +0100
committerDave Hibberd <d@vehibberd.com>2023-10-10 22:07:04 +0100
commit7b2a99c53b210949fb2e993e65b6be66a9cbf7a1 (patch)
treee5feda7463d38022eef6eedf032423189e9d3dce /Cmd.c
parent084ecb74f6007abbb7e1578675964ac9352ef822 (diff)
New upstream version 6.0.24.15upstream/6.0.24.15
Diffstat (limited to 'Cmd.c')
-rw-r--r--Cmd.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Cmd.c b/Cmd.c
index 44bf503..1e2955c 100644
--- a/Cmd.c
+++ b/Cmd.c
@@ -3676,6 +3676,13 @@ VOID MHCMD(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, CMDX * CM
ptr = strtok_s(CmdTail, " ", &Context);
+ if (ptr == NULL || ptr[0] == 0)
+ {
+ Bufferptr = Cmdprintf(Session, Bufferptr, "Port Number needed eg MH 1\r");
+ SendCommandReply(Session, REPLYBUFFER, (int)(Bufferptr - (char *)REPLYBUFFER));
+ return;
+ }
+
if (ptr)
Port = atoi(ptr);
@@ -4137,7 +4144,7 @@ VOID ATTACHCMD(TRANSPORTENTRY * Session, char * Bufferptr, char * CmdTail, CMDX
if (OtherTNC == TNC)
continue;
- if (rxInterlock == OtherTNC->RXRadio || txInterlock == OtherTNC->TXRadio) // Same Group
+ if (rxInterlock && rxInterlock == OtherTNC->RXRadio || txInterlock && txInterlock == OtherTNC->TXRadio) // Same Group
{
int n;