aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-06 04:41:58 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-06 04:41:58 +0000
commit391662917b3bd0bdd0f6a617894bb003c0a41664 (patch)
tree1c4468f16bba6139f6f7c496194cb6ab96b98128
parent8f3bac021129d61fec55f52f8a613d906eca9a5f (diff)
downloadfetchmail-391662917b3bd0bdd0f6a617894bb003c0a41664.tar.gz
fetchmail-391662917b3bd0bdd0f6a617894bb003c0a41664.tar.bz2
fetchmail-391662917b3bd0bdd0f6a617894bb003c0a41664.zip
Correct return test.
svn path=/trunk/; revision=491
-rw-r--r--driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 81346e8d..096c5f2a 100644
--- a/driver.c
+++ b/driver.c
@@ -876,7 +876,7 @@ const struct method *proto; /* protocol method table */
/* open a socket to the mail server */
if ((sockfp = Socket(ctl->servername,
- ctl->port ? ctl->port : protocol->port))<0)
+ ctl->port ? ctl->port : protocol->port)) == NULL)
{
perror("fetchmail, connecting to host");
ok = PS_SOCKET;