summaryrefslogtreecommitdiff
path: root/CommonCode.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2025-12-23 16:30:09 +0000
committerDave Hibberd <hibby@debian.org>2025-12-23 16:30:09 +0000
commitd5f8de2e8f4d8da3aae9e27c3fdab1a820d2504c (patch)
treeb8c56d7cba797cd2892de409f1e8c58771088525 /CommonCode.c
parentee15c1a996dd06295750a13075987031399195ff (diff)
parent559d5bbf7c0f401c1def858a9695b43b56a993ec (diff)
Update upstream source from tag 'upstream/6.0.25.13+repack'
Update to upstream version '6.0.25.13+repack' with Debian dir 26b4e77a37c654b0e424f1078dc9316ded2af8ae
Diffstat (limited to 'CommonCode.c')
-rw-r--r--CommonCode.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/CommonCode.c b/CommonCode.c
index 9e8b37a..26dda97 100644
--- a/CommonCode.c
+++ b/CommonCode.c
@@ -76,6 +76,7 @@ char * FormatMH(PMHSTRUC MH, char Format);
void WriteConnectLog(char * fromCall, char * toCall, UCHAR * Mode);
void SendDataToPktMap();
void NETROMTCPResolve();
+VOID FindLostBuffers();
extern BOOL LogAllConnects;
extern BOOL M0LTEMap;
@@ -565,6 +566,15 @@ VOID * _GetBuff(char * File, int Line)
Msg->Linkptr = NULL;
Msg->Padding[0] = 0; // Used for modem status info
}
+ else if (QCOUNT != 0)
+ {
+ // Queue must be corrupt
+
+ Debugprintf("Fatal - Getbuff returned NULL and Q not empty - exit");
+ FindLostBuffers();
+ WriteMiniDump();
+ Restart();
+ }
else
Debugprintf("Warning - Getbuff returned NULL");