summaryrefslogtreecommitdiffstats
path: root/sesman/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'sesman/env.c')
-rw-r--r--sesman/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sesman/env.c b/sesman/env.c
index e96966fd..7c5ea86c 100644
--- a/sesman/env.c
+++ b/sesman/env.c
@@ -44,7 +44,7 @@ env_check_password_file(char* filename, char* password)
rfbDesKey(g_fixedkey, 0);
rfbDes((unsigned char*)encryptedPasswd, (unsigned char*)encryptedPasswd);
fd = g_file_open(filename);
- if (fd == 0)
+ if (fd == -1)
{
log_message(LOG_LEVEL_WARNING, "can't read vnc password file - %s",
filename);