summaryrefslogtreecommitdiff
path: root/Cmd.c
diff options
context:
space:
mode:
authorDave Hibberd <d@vehibberd.com>2023-10-10 22:07:21 +0100
committerDave Hibberd <d@vehibberd.com>2023-10-10 22:07:21 +0100
commit3e029049d76fdc2fc6b5f29ba5c97787067a50da (patch)
tree69c963a5c2414f91d233108a9aa5ce6cc2453a52 /Cmd.c
parentb6a50b9b6c417bc84f44a7426423299495cd475d (diff)
parent7b2a99c53b210949fb2e993e65b6be66a9cbf7a1 (diff)
Update upstream source from tag 'upstream/6.0.24.15'
Update to upstream version '6.0.24.15' with Debian dir 55d9f12f070c2d4941ac2cd52b761500aa2e5570
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;