diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-12-23 16:30:05 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-12-23 16:30:05 +0000 |
| commit | 559d5bbf7c0f401c1def858a9695b43b56a993ec (patch) | |
| tree | d0d2cdf7a10e2609864814bb8caa34b98cf16f6c /CommonCode.c | |
| parent | d7b0d25ddb64850a2943f33d2450557629605bc9 (diff) | |
New upstream version 6.0.25.13+repackupstream/6.0.25.13+repack
Diffstat (limited to 'CommonCode.c')
| -rw-r--r-- | CommonCode.c | 10 |
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");
|
