summaryrefslogtreecommitdiff
path: root/UZ7HODrv.c
diff options
context:
space:
mode:
Diffstat (limited to 'UZ7HODrv.c')
-rw-r--r--UZ7HODrv.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/UZ7HODrv.c b/UZ7HODrv.c
index 53d8e4b..9e72c45 100644
--- a/UZ7HODrv.c
+++ b/UZ7HODrv.c
@@ -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);