From 675073a6c944ed1af98ac3bf9a29546c0cd80ba5 Mon Sep 17 00:00:00 2001 From: Bobbi Webber-Manners Date: Tue, 16 Nov 2021 15:02:03 -0500 Subject: [PATCH] SMTP65/NNTP65.UP: Stop looking for headers on finding blank line --- apps/nntp65.up.c | 2 +- apps/smtp65.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/nntp65.up.c b/apps/nntp65.up.c index 4810b10..d6067a3 100644 --- a/apps/nntp65.up.c +++ b/apps/nntp65.up.c @@ -577,7 +577,7 @@ void main(int argc, char *argv[]) { linecount = 0; while (1) { - if ((get_line(fp, 0, linebuf, LINEBUFSZ) == 0) || (linecount == 20)) + if ((get_line(fp, 0, linebuf, LINEBUFSZ) == 0) || (linecount == 20) || (linebuf[0] == '\r')) break; ++linecount; if (!strncmp(linebuf, "Newsgroups: ", 12)) diff --git a/apps/smtp65.c b/apps/smtp65.c index b7ba12e..443a2f4 100644 --- a/apps/smtp65.c +++ b/apps/smtp65.c @@ -577,7 +577,7 @@ void main(int argc, char *argv[]) { strcpy(recipients, ""); while (1) { - if ((get_line(fp, 0, linebuf, LINEBUFSZ) == 0) || (linecount == 20)) { + if ((get_line(fp, 0, linebuf, LINEBUFSZ) == 0) || (linecount == 20) || (linebuf[0] == '\r')) { if (strlen(recipients) == 0) { printf("No recipients (To or Cc) in %s. Skipping msg.\n", d->d_name); goto skiptonext;