summaryrefslogtreecommitdiff
path: root/chat/dircproxy-devel/patches/patch-ac
blob: 2fe84a57202e29237a8fc75f0f0c9a2d4e15e657 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
$NetBSD: patch-ac,v 1.3 2006/04/27 16:36:17 tron Exp $

--- src/irc_server.c.orig	2006-02-18 22:39:32.000000000 +0000
+++ src/irc_server.c	2006-04-27 17:18:02.000000000 +0100
@@ -587,9 +587,10 @@
         ;
         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;
       }
@@ -788,7 +789,7 @@
               free(s);
 
               /* Was in the squelch list, so remove it and stop looking */
-              s = (l ? l->next : p->squelch_modes) = n;
+	      s = *(l ? &(l->next) : &(p->squelch_modes)) = n;
               squelch = 1;
               break;
             } else {