Article View: news.software.nntp
Article #45323Re: Xref: host name not matching server name
From: Sven Paulus
Date: Tue, 28 Mar 2000 00:00
Date: Tue, 28 Mar 2000 00:00
24 lines
1686 bytes
1686 bytes
In news.software.nntp Curt Welch <curt@kcwc.com> wrote:
|>> while (*curg == ' ') ++curg; /* Skip to the hostname field after Xref: */
|> But that's just the code that advances curg _to_ the host name field. Now
|> you've made we want to look at what comes next :).
arghl, of course you're right, I shouldn't try cutting and pasting when
I'm already half asleep :)
curg += 6; /* Skip over "Xref: " */
while (*curg == ' ') ++curg; /* Skip to the hostname field after Xref: */
/* Skip over the hostname to the space following hostname */
if ( (curg = strchr(curg, ' ')) == NULL ) {
return; /* header is malformed, punt. */
}
So everything is ok. Almost ok. RFC1036 talks about "white space"
between the Xref-elements, which is defined somewhere else in 1036 as
"blanks or tabs". So strpbrk(curg, " \t") is the right solution.
Sven
Technical Details
Message-ID:
<Loretta_Strawson@calculus.pool-16.oops.inka.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<20000324140617.370$6V@newsreader.com> <acYC4.3279$nI2.68864@ptah.visi.com> <Nadine.Gerners@antagonist.pool-68.oops.inka.de> <20000328000324.757$7S@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <Loretta_Strawson@calculus.pool-16.oops.inka.de> Subject: Re: Xref: host name not matching server name Date: Tue, 28 Mar 2000 00:00:00 +0000 From: Sven Paulus <sven@karlsruhe.org> References: <20000324140617.370$6V@newsreader.com> <acYC4.3279$nI2.68864@ptah.visi.com> <Nadine.Gerners@antagonist.pool-68.oops.inka.de> <20000328000324.757$7S@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 603490814 Organization: clueless in Karlsruhe, Germany Newsgroups: news.software.readers,news.software.nntp