mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 18:36:28 -04:00
Patch to fix illegal post-free() access (causes crash on -current).
This commit is contained in:
parent
f373176813
commit
3d6c3a1655
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84989
1 changed files with 22 additions and 0 deletions
22
comms/birda/files/patch-iassrv.c
Normal file
22
comms/birda/files/patch-iassrv.c
Normal 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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Add table
Reference in a new issue