aboutsummaryrefslogtreecommitdiffstats
path: root/comms/birda/files
diff options
context:
space:
mode:
authorpb <pb@FreeBSD.org>2003-07-16 20:21:07 +0800
committerpb <pb@FreeBSD.org>2003-07-16 20:21:07 +0800
commit9e7ba64c92d3aa126dddc09387dadb3864c0983e (patch)
tree794ed5dadaec7f22e40d805d46687e67186099a9 /comms/birda/files
parent7d4b68e32b65864535a4e71fad3868d8be49d1a2 (diff)
downloadfreebsd-ports-gnome-9e7ba64c92d3aa126dddc09387dadb3864c0983e.tar.gz
freebsd-ports-gnome-9e7ba64c92d3aa126dddc09387dadb3864c0983e.tar.zst
freebsd-ports-gnome-9e7ba64c92d3aa126dddc09387dadb3864c0983e.zip
Patch to fix illegal post-free() access (causes crash on -current).
Diffstat (limited to 'comms/birda/files')
-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");
+ }
+ }
+