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 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;