From: Taylor R. Campbell Date: Fri, 20 Jun 2008 06:10:13 +0000 (+0000) Subject: Check for end of input from server in SMTP-READ-LINE, and deliver a X-Git-Tag: 20090517-FFI~286 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=f4b4da7de956c3fa1eff16b468fcb5532412d559;p=mit-scheme.git Check for end of input from server in SMTP-READ-LINE, and deliver a sensible error message in that case. --- 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))