[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [leafnode-list] new leafnode-2 snapshot available



Jeff Grossman schrieb am Sonntag, den 01. September 2002:

> I just installed this new snapshot version on a Redhat 7.3 system and no
> problems.  I ran a fetchnews run and read newsgroups with no problems.
> I have not tried to post any articles yet.

I figured there's a bug when adding a description to local groups that
went without description before. If that happens, all leafnode programs will die with
a segmentation fault several second fractions after start-up.

Here's a band-aid ^Wpatch against snapshot-20020902a to remedy this:

Index: leafnode-2/activutil.c
diff -u leafnode-2/activutil.c:1.33 leafnode-2/activutil.c:1.34
--- leafnode-2/activutil.c:1.33	Mon Jul 15 04:58:54 2002
+++ leafnode-2/activutil.c	Mon Sep  2 02:59:34 2002
@@ -72,8 +72,8 @@
 	g = findgroup(name, active, -1);
 	if (g) {
 	    g->status = status;
-	    if (desc && strcmp(g->desc, desc)) {
-		free(g->desc);
+	    if (desc && (g->desc == NULL || strcmp(g->desc, desc) != 0)) {
+		if (g->desc) free(g->desc);
 		g->desc = critstrdup(desc, "insertgroup");
 	    }
 	    return;

-- 
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list