From f4b4da7de956c3fa1eff16b468fcb5532412d559 Mon Sep 17 00:00:00 2001 From: "Taylor R. Campbell" Date: Fri, 20 Jun 2008 06:10:13 +0000 Subject: [PATCH] Check for end of input from server in SMTP-READ-LINE, and deliver a sensible error message in that case. --- v7/src/edwin/sendmail.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/v7/src/edwin/sendmail.scm b/v7/src/edwin/sendmail.scm index ac0e2cf9e..a0aa1e288 100644 --- a/v7/src/edwin/sendmail.scm +++ b/v7/src/edwin/sendmail.scm @@ -1,6 +1,6 @@ #| -*-Scheme-*- -$Id: sendmail.scm,v 1.96 2008/05/19 05:18:21 riastradh Exp $ +$Id: sendmail.scm,v 1.97 2008/06/20 06:10:13 riastradh Exp $ Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, @@ -1054,6 +1054,8 @@ the user from the mailer." (define (smtp-read-line port) (let ((line (read-line (smtp-port-port port)))) + (if (eof-object? line) + (editor-error "Premature end of input from SMTP server: " port)) (smtp-trace-write-string line port) (smtp-trace-newline port) line)) -- 2.25.1