Patch to fix illegal post-free() access (causes crash on -current).

This commit is contained in:
Pierre Beyssac 2003-07-16 12:21:07 +00:00
parent f373176813
commit 3d6c3a1655
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84989

View file

@ -0,0 +1,22 @@
--- src/iassrv.c.orig Sun Dec 16 19:22:20 2001
+++ src/iassrv.c Wed Jul 16 14:08:55 2003
@@ -281,6 +281,7 @@
static void status(Connection* con, int event, void* buf, int len)
{
+ int flags;
IASConnection* ic=(IASConnection*)con->handle;
if(event==CONN_CLOSED) {
@@ -300,9 +301,10 @@
if(ic->outBuf) freeMem(ic->outBuf);
if(ic->inBuf) freeMem(ic->inBuf);
+ flags = ic->ias->ias.debug&IAS_DEBUG_INFO;
freeMem(ic);
connClose(con);
- if(ic->ias->ias.debug&IAS_DEBUG_INFO) log("ias closed\n");
+ if(flags) log("ias closed\n");
}
}