summaryrefslogtreecommitdiffstats
path: root/sesman/env.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-08-24 05:58:10 +0000
committerjsorg71 <jsorg71>2006-08-24 05:58:10 +0000
commit8c73bc31cb2162b53cf7640afe0e4af7a252c93d (patch)
tree8bd392fe6376c6196fb6789909f2218fccfa58c3 /sesman/env.c
parent56039620612a933a1152601660c41cd04e9b9c4d (diff)
downloadxrdp-proprietary-8c73bc31cb2162b53cf7640afe0e4af7a252c93d.tar.gz
xrdp-proprietary-8c73bc31cb2162b53cf7640afe0e4af7a252c93d.zip
minor fixes and indent
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);