diff options
| author | g8bpq <john.wiseman@cantab.net> | 2022-10-03 15:55:07 +0100 |
|---|---|---|
| committer | g8bpq <john.wiseman@cantab.net> | 2022-10-03 15:55:07 +0100 |
| commit | 4a4271cb07f8c69d4e064a2ef5ccc6c400b4f957 (patch) | |
| tree | eab5d58acc3fadf36f1878caeb776dbea9d2069b /UZ7HODrv.c | |
| parent | 9d98903fccef714f6ff788097a8d66282fc2800d (diff) | |
6.0.23.2123.22
Diffstat (limited to 'UZ7HODrv.c')
| -rw-r--r-- | UZ7HODrv.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -934,6 +934,22 @@ static size_t ExtProc(int fn, int port, PDATAMESSAGE buff) ptr = strtok_s(&buff->L2DATA[2], " ,\r", &context);
+ if (ptr == 0)
+ {
+ PMSGWITHLEN buffptr = (PMSGWITHLEN)GetBuff();
+
+ if (buffptr)
+ {
+ buffptr->Len = sprintf((UCHAR *)&buffptr->Data[0],
+ "UZ7HO} Error - Call missing from C command\r", STREAM->MyCall, STREAM->RemoteCall);
+
+ C_Q_ADD(&STREAM->PACTORtoBPQ_Q, buffptr);
+ }
+
+ STREAM->DiscWhenAllSent = 10;
+ return 0;
+ }
+
if (*ptr == '!')
ptr++;
@@ -1980,6 +1996,15 @@ VOID ProcessAGWPacket(struct TNCINFO * TNC, UCHAR * Message) RXHeader->DataLength = reverse(RXHeader->DataLength);
#endif
+ if (RXHeader->DataKind == 'x')
+ return;
+
+ if (RXHeader->DataKind == 'R')
+ return;
+
+ if (RXHeader->DataKind == 'g')
+ return;
+
switch (RXHeader->DataKind)
{
case 'D': // Appl Data
@@ -2461,6 +2486,9 @@ GotStream: // Now copy CTL PID and Data
+ if (Rest < 0 || Rest > 256)
+ return;
+
memcpy(ptr2, ptr1, Rest);
BPQTRACE((MESSAGE *)&MonDigis, TRUE);
|
