Duplicate Cancel-Lock: header

Robert Grimm <[email protected]>
Newsgroups gmane.network.slrn.user
Organization Disorganized
Message-ID <[email protected]>
Hello,

I may have discovered a bug in cancellock handling in slrn. I use a cvs
version from 2007-03-18.  I noticed, that the Header Cancel-Lock is
inserted twice, once in line 1607, the second time in line 1645 of
post.c.

I made the following changes and it looks ok, but I don't know if that
may lead into troubles.

--- /tmp/post.c 2007-06-30 21:29:27.428608343 +0200
+++ src/post.c  2007-06-30 21:31:24.000000000 +0200
@@ -1604,8 +1604,8 @@
                            a->cline->buf=slrn_safe_malloc(13+strlen(msgid));
                            sprintf(a->cline->buf, "Message-ID: %s", msgid);
                            SLFREE (msgid);
-                           Slrn_Post_Obj->po_puts(a->cline->buf);
-                           Slrn_Post_Obj->po_puts("\n");
+                           /*Slrn_Post_Obj->po_puts(a->cline->buf);
+                           Slrn_Post_Obj->po_puts("\n");*/
                            a->cline=a->cline->next;
                         }
                    }


Rob
-- 
I don't know why and I'm not yet motivated to fix 
it since my views on esd are mostly unprintable.
			-- Alan Cox


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.