summaryrefslogtreecommitdiff
path: root/comms/birda
diff options
context:
space:
mode:
authorPierre Beyssac <pb@FreeBSD.org>2003-07-16 12:21:07 +0000
committerPierre Beyssac <pb@FreeBSD.org>2003-07-16 12:21:07 +0000
commit3d6c3a1655e79c47e6b013ffce160ebca29b6988 (patch)
treea916bcf25d704c9e0c734507d5859b7d651ef1d6 /comms/birda
parentupdate x11-toolkits/gtkmathview: build on 5.x (diff)
Patch to fix illegal post-free() access (causes crash on -current).
Notes
Notes: svn path=/head/; revision=84989
Diffstat (limited to 'comms/birda')
-rw-r--r--comms/birda/files/patch-iassrv.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/comms/birda/files/patch-iassrv.c b/comms/birda/files/patch-iassrv.c
new file mode 100644
index 000000000000..185394fe4571
--- /dev/null
+++ b/comms/birda/files/patch-iassrv.c
@@ -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");
+ }
+ }
+