1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 11:23:13 +02:00

- Fixed crash in /STATS Z (possibly rare), reported by yasinbey (#0002929).

This commit is contained in:
Bram Matthys
2006-05-28 18:08:48 +00:00
parent b78db0393e
commit ad693eebcb
2 changed files with 2 additions and 3 deletions
+1
View File
@@ -1215,3 +1215,4 @@
(#0002921).
- Fixed win32 compile problem cause by timesynch.
- Updated release notes: more modulization and real command alias support.
- Fixed crash in /STATS Z (possibly rare), reported by yasinbey (#0002929).
+1 -3
View File
@@ -987,10 +987,8 @@ int stats_mem(aClient *sptr, char *para)
sendto_one(sptr, ":%s %d %s :Dbuf blocks %d(%ld)",
me.name, RPL_STATSDEBUG, sptr->name, dbufblocks, db);
link = freelink;
while ((link = link->next))
for (link = freelink; link; link = link->next)
fl++;
fl++;
sendto_one(sptr, ":%s %d %s :Link blocks free %d(%ld) total %d(%ld)",
me.name, RPL_STATSDEBUG, sptr->name,
fl, (long)(fl * sizeof(Link)),