aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver.c b/driver.c
index 84e557f3..1c8408e1 100644
--- a/driver.c
+++ b/driver.c
@@ -874,7 +874,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)) == (FILE *)NULL)
{
perror("fetchmail, connecting to host");
ok = PS_SOCKET;