aboutsummaryrefslogtreecommitdiffstats
path: root/community/dircproxy/fix-segfault.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/dircproxy/fix-segfault.patch')
-rw-r--r--community/dircproxy/fix-segfault.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/dircproxy/fix-segfault.patch b/community/dircproxy/fix-segfault.patch
new file mode 100644
index 0000000000..2a0bd152db
--- /dev/null
+++ b/community/dircproxy/fix-segfault.patch
@@ -0,0 +1,25 @@
+From ee9552214018abf79ec110cfb1c680776294c64e Mon Sep 17 00:00:00 2001
+From: fharvey <fharvey@36e7e03e-8437-11dd-8f23-d9c8888c2974>
+Date: Sun, 1 Oct 2006 13:55:18 +0000
+Subject: [PATCH] Fix segfault. Close #15 and #44
+
+---
+ src/irc_server.c | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/irc_server.c b/src/irc_server.c
+index 4ffdfca..a694ab2 100644
+--- a/src/irc_server.c
++++ b/src/irc_server.c
+@@ -587,9 +587,10 @@ static int _ircserver_gotmsg(struct ircproxy *p, const char *str) {
+ ;
+ if (strcmp(ss->str,s->str)) // this line is not already present
+ ss->next = s;
+- else
++ else {
+ free(s->str);
+ free(s);
++ }
+ } else {
+ p->serversupported = s;
+ }