aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-16 16:38:34 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-16 16:38:34 +0000
commitd29f00801f0c468640792ca5888c4f7b16f94254 (patch)
treeed7917d15bad1ba0477cbf2d4abdac29749577a2 /driver.c
parenta147a777842e22c5ef0ca1ca86cfe61f952056a4 (diff)
downloadfetchmail-d29f00801f0c468640792ca5888c4f7b16f94254.tar.gz
fetchmail-d29f00801f0c468640792ca5888c4f7b16f94254.tar.bz2
fetchmail-d29f00801f0c468640792ca5888c4f7b16f94254.zip
Include Cameron McPherson's patch for handling multi-line SMTP responses.
svn path=/trunk/; revision=545
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 2 insertions, 2 deletions
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");