From cfb9aaacebc282e7c32546ad3ff9c706d51c4ce6 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 4 Jun 2002 13:10:47 +0000 Subject: Skip empty addresses. svn path=/trunk/; revision=3626 --- transact.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'transact.c') diff --git a/transact.c b/transact.c index 4750fbee..d20cf28c 100644 --- a/transact.c +++ b/transact.c @@ -92,6 +92,13 @@ static void find_server_names(const char *hdr, { char *atsign; + /* + * Handle empty address from a To: header containing only + * a comment. + */ + if (!*cp) + continue; + /* * If the name of the user begins with a qmail virtual * domain prefix, ignore the prefix. Doing this here @@ -474,6 +481,7 @@ int readheaders(int sock, */ if (protocol->delimited && line[0] == '.' && EMPTYLINE(line+1)) { + headers_ok = FALSE; has_nuls = (linelen != strlen(line)); free(line); goto process_headers; -- cgit v1.2.3