Fixed header lines for posting news

This commit is contained in:
Michiel Broek
2005-08-13 19:51:32 +00:00
parent 3a2532e0e7
commit 8b21673eca
4 changed files with 736 additions and 731 deletions

View File

@@ -146,6 +146,7 @@ int nntp_send(char *buf)
if (nntpsock == -1)
return -1;
Syslog('m', "> %s", printable(buf, 0));
if (send(nntpsock, buf, strlen(buf), 0) != strlen(buf)) {
WriteError("$NNTP: socket send failed");
if (errno == ENOTCONN || errno == EPIPE) {
@@ -195,6 +196,7 @@ char *nntp_receive(void)
buf[i] = '\0';
}
Syslog('m', "< %s", printable(buf, 0));
return buf;
}