diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-10-31 07:32:20 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2016-10-31 07:33:24 +0000 |
commit | 61d3fafd055aff8f7e62251ef583679536feb2a2 (patch) | |
tree | d053f83def283f33023a38e3dd8efbcabcbaeea1 /main/dircproxy/fix-segfault.patch | |
parent | 8a97690040729669d1d970967374d2ba65f3c30b (diff) | |
download | aports-61d3fafd055aff8f7e62251ef583679536feb2a2.tar.bz2 aports-61d3fafd055aff8f7e62251ef583679536feb2a2.tar.xz |
main/dircproxy: build fixes
Diffstat (limited to 'main/dircproxy/fix-segfault.patch')
-rw-r--r-- | main/dircproxy/fix-segfault.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/dircproxy/fix-segfault.patch b/main/dircproxy/fix-segfault.patch new file mode 100644 index 0000000000..2a0bd152db --- /dev/null +++ b/main/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; + } |