[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] no X-Posts with 2.0b8_ma-pre3-WIP-post-20010427-3
Raymond Scholz <rscholz@xxxxxx> writes:
> 'vening!
>
> leafnode 2.0b8_ma-pre3-WIP-post-20010427-3
>
> Apparently, this version does not accept X-Posts.
No, it crashes because of the leading space (it gives free() a pointer
it has modified after obtaining it from strdup), this patch fixes this
particular crash, but you'd better fix your newsreader:
--- localutil.c 2001/04/25 11:21:19 1.7.2.6
+++ localutil.c 2001/05/04 08:52:01
@@ -152,10 +152,10 @@
*/
int islocal(const char *grouplist)
{
- char *p, *q;
+ char *p, *q, *g;
int retval = TRUE; /* assume that all groups are local */
- p = strdup(grouplist);
+ p = g = strdup(grouplist);
do {
while (isspace((unsigned char) *p))
p++;
@@ -166,7 +166,7 @@
retval = FALSE;
p = q;
} while (p && *p && retval);
- free(p);
+ free(g);
return retval;
}
--
Matthias Andree
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list