can't get article via NNTP, can get it via sm...

christian mock cm at tahina.priv.at
Wed Jun 12 18:12:45 UTC 2002


Katsuhiro Kondou <Katsuhiro_Kondou at isc.org> wrote:

> I wrote the patch which is successfully compiled.
> The patch also fixes other problem which was reported
> last October.  Could you try it, and let me know if
> it's ok?

Despite my previous positive posting, I overlooked that the patch 
breaks the Path header completely.

The following patch is to be applied after your patch:

--- nnrpd/article.c.patched	Wed Jun 12 19:10:40 2002
+++ nnrpd/article.c	Wed Jun 12 19:11:47 2002
@@ -418,7 +418,7 @@
 	    ARTget++;
 	    return;
 	}
-	if ((r = memchr(xref, ' ', q - xref)) == NULL) {
+	if ((r = memchr(xref, ' ', p - xref)) == NULL) {
 	    SendIOv(".\r\n", 3);
 	    ARTgetsize += 3;
 	    PushIOv();
@@ -445,7 +445,7 @@
 		continue;
 	    break;
 	}
-	if (s + VirtualPathlen + 1 < ARThandle->data + ARThandle->len) {
+	if (s + VirtualPathlen + 1 < endofpath) {
 	    if (xref > path) {
 	        SendIOv(q, path - q);
 	        SendIOv(s, xref - s);


ciao,

cm.

-- 
> Ich habe neulich ein paar Salate kennengelernt, die hatten eine
> ausgesprochen schlechte Meinung über Vegetarier.
Iß keinen Salat, weil du Tiere liebst, sondern weil du _Pflanzen haßt_!
                      -- Roger Schwentker und Felix von Leitner in dasr



-- Attached file included as plaintext by Ecartis --

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Exmh version 2.1.1 10/15/1999 (debian)

iQCVAwUBPQePHDN1HR51PEZdAQLxswP/Y0iAyr9mLwo1tp0PPhR7XQrGdFOcc2ZO
MVuiskP2MshY7IjJ09D4Y74CUZdlaFCWU3ChPqIyDSkQpQ2wfl77sSbxBxyBQ08Q
zG9sU3cX+uNjhsegwQaO8cU9ljyRC8PkKg+1H6JSLTGjk/row0g0Q7hF1glF+j/J
m5Q2jI950E8=
=pR2Q
-----END PGP SIGNATURE-----




More information about the inn-workers mailing list