summaryrefslogtreecommitdiff
path: root/AGWAPI.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-06-29 11:37:02 +0100
committerDave Hibberd <hibby@debian.org>2026-06-29 11:37:02 +0100
commit4069b590bab97f853f74b35643ee18e85d3d2faf (patch)
treeae63202436cefa22a47500b8f8ed2cffb1ea69da /AGWAPI.c
parent53233bad3c533ed5b2e9034c97a3f3b4683a5628 (diff)
parent23de03a0c8bf8a564cc0442f49d050ed11e372b8 (diff)
Update upstream source from tag 'upstream/6.0.25.33.1+repack'
Update to upstream version '6.0.25.33.1+repack' with Debian dir e413f4c5ca4f2d5d40bfb161d45fca5eabc730f3
Diffstat (limited to 'AGWAPI.c')
-rw-r--r--AGWAPI.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/AGWAPI.c b/AGWAPI.c
index f40ba4c..5dc2f9c 100644
--- a/AGWAPI.c
+++ b/AGWAPI.c
@@ -1393,7 +1393,13 @@ int ProcessAGWCommand(struct AGWSocketConnectionInfo * sockptr)
if (sockptr->AGWRXHeader.DataKind == 'V') // Unproto with VIA string
{
Digis = sockptr->MsgData[0]; // Number of digis
-
+
+ if (Digis > 7)
+ {
+ AGWDataSocket_Disconnect(sockptr);
+ return 0;
+ }
+
for (j = 1; j<= Digis; j++)
{
ConvToAX25(&sockptr->MsgData[(j - 1) * 10 + 1],&TXMessage[7+(j*7)]); // No "last" bit