From d29f00801f0c468640792ca5888c4f7b16f94254 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sat, 16 Nov 1996 16:38:34 +0000 Subject: Include Cameron McPherson's patch for handling multi-line SMTP responses. svn path=/trunk/; revision=545 --- driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index fa5b0cac..42f505ee 100644 --- a/driver.c +++ b/driver.c @@ -242,7 +242,7 @@ static FILE *smtp_open(struct query *ctl) { if ((ctl->smtp_sockfp = Socket(ctl->smtphost, SMTP_PORT)) == (FILE *)NULL) return((FILE *)NULL); - else if (SMTP_ok(ctl->smtp_sockfp, NULL) != SM_OK + else if (SMTP_ok(ctl->smtp_sockfp) != SM_OK || SMTP_helo(ctl->smtp_sockfp, ctl->servername) != SM_OK) { fclose(ctl->smtp_sockfp); @@ -436,7 +436,7 @@ struct query *ctl; /* query control record */ { char *ap; - if (ctl->mda[0] == '\0' && ((sinkfp = smtp_open(ctl)) < 0)) + if (ctl->mda[0] == '\0' && ((sinkfp = smtp_open(ctl)) == NULL)) { free_uid_list(&xmit_names); fprintf(stderr, "fetchmail: SMTP connect failed\n"); -- cgit v1.2.3