summaryrefslogtreecommitdiff
path: root/devel/tla/files/patch-libneon-ne_207.c
diff options
context:
space:
mode:
authorJacques Vidrine <nectar@FreeBSD.org>2004-04-30 16:04:38 +0000
committerJacques Vidrine <nectar@FreeBSD.org>2004-04-30 16:04:38 +0000
commitf01c4343e07da48e415a8a4f82c355afa103fa7d (patch)
tree661b344bcbd05a1e47a55fdd87b46a93d0d97339 /devel/tla/files/patch-libneon-ne_207.c
parentAdd anope 1.6.2, a set of IRC services for IRC networks. (diff)
Patch remotely exploitable libneon bugs after maintainer timeout.
PR: ports/65754 Submitted by: Frank Ruell <stoerte@dreamwarrior.net>
Notes
Notes: svn path=/head/; revision=108042
Diffstat (limited to 'devel/tla/files/patch-libneon-ne_207.c')
-rw-r--r--devel/tla/files/patch-libneon-ne_207.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/devel/tla/files/patch-libneon-ne_207.c b/devel/tla/files/patch-libneon-ne_207.c
new file mode 100644
index 000000000000..961ae0fe329c
--- /dev/null
+++ b/devel/tla/files/patch-libneon-ne_207.c
@@ -0,0 +1,17 @@
+--- ../tla/libneon.orig/ne_207.c Sat Dec 6 20:35:28 2003
++++ ../tla/libneon/ne_207.c Sat Apr 17 20:25:46 2004
+@@ -320,12 +320,12 @@
+ if (ne_get_status(req)->code == 207) {
+ if (!ne_xml_valid(p)) {
+ /* The parse was invalid */
+- ne_set_error(sess, ne_xml_get_error(p));
++ ne_set_error(sess, "%s", ne_xml_get_error(p));
+ ret = NE_ERROR;
+ } else if (ctx.is_error) {
+ /* If we've actually got any error information
+ * from the 207, then set that as the error */
+- ne_set_error(sess, ctx.buf->data);
++ ne_set_error(sess, "%s", ctx.buf->data);
+ ret = NE_ERROR;
+ }
+ } else if (ne_get_status(req)->klass != 2) {