diff options
| author | Dave Hibberd <hibby@debian.org> | 2025-05-21 21:33:54 +0100 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2025-05-21 21:33:54 +0100 |
| commit | 3ecb593511b18e6bd2eb768160c5a85633ab1da6 (patch) | |
| tree | 0a6cb528674898a0c11953fbe766f55e1dc54164 /CommonCode.c | |
| parent | 96197688e7b79553d45e0b6a5e760c2d80604862 (diff) | |
| parent | 0d3ee7fd56efa24ba652fbc17f98dd10458e8054 (diff) | |
Update upstream source from tag 'upstream/6.0.24.71+repack'
Update to upstream version '6.0.24.71+repack'
with Debian dir d79186aef0fff313e53c27b3f3fadf9c0193c56a
Diffstat (limited to 'CommonCode.c')
| -rw-r--r-- | CommonCode.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/CommonCode.c b/CommonCode.c index f5d5125..ecac115 100644 --- a/CommonCode.c +++ b/CommonCode.c @@ -77,6 +77,8 @@ char * stristr (char *ch1, char *ch2); extern VOID * ENDBUFFERPOOL;
+extern int PoolBuilt;
+
// Read/Write length field in a buffer header
@@ -363,7 +365,7 @@ BOK1: if (n > 1000)
{
- Debugprintf("Loop searching free chain - pointer = %p %p", debug, pointer);
+ Debugprintf("Releasebuffer Loop searching free chain - pointer = %p %p from %s Line %d", debug, pointer, File, Line);
return 0;
}
}
@@ -376,6 +378,11 @@ BOK1: QCOUNT++;
+ if (PoolBuilt && QCOUNT > MAXBUFFS)
+ {
+ Debugprintf("Releasebuffer QCOUNT > MAXBUFFS - pointer = %p from %s Line %d", pointer, File, Line);
+ return 0;
+ }
return 0;
}
@@ -473,7 +480,7 @@ int C_Q_ADD_NP(VOID *PQ, VOID *PBUFF) next = Q[0];
while (next[0] != 0)
- next=next[0]; // Chain to end of queue
+ next = next[0]; // Chain to end of queue
next[0] = BUFF; // New one on end
@@ -1061,6 +1068,7 @@ BOOL ReadConfigFile(int Port, int ProcLine(char * buf, int Port)) WritetoConsoleLocal("\n");
WritetoConsoleLocal("Bad config record ");
WritetoConsoleLocal(errbuf);
+ WritetoConsoleLocal("\n");
}
}
}
|
