summaryrefslogtreecommitdiff
path: root/CommonCode.c
diff options
context:
space:
mode:
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");