summaryrefslogtreecommitdiffstats
path: root/vncauth.c
diff options
context:
space:
mode:
Diffstat (limited to 'vncauth.c')
-rw-r--r--vncauth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vncauth.c b/vncauth.c
index 01bad00..6b3c730 100644
--- a/vncauth.c
+++ b/vncauth.c
@@ -118,10 +118,10 @@ rfbDecryptPasswdFromFile(char *fname)
{
FILE *fp;
int i, ch;
- unsigned char *passwd = (unsigned char *)malloc(9);
-
if ((fp = fopen(fname,"r")) == NULL) return NULL;
+ unsigned char *passwd = (unsigned char *)malloc(9);
+
for (i = 0; i < 8; i++) {
ch = getc(fp);
if (ch == EOF) {
OpenPOWER on IntegriCloud