Explorar el Código

* Return error if cannot read in userfile

Bryan Drewery hace 16 años
padre
commit
df960dbbbc
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/users.c

+ 2 - 1
src/users.c

@@ -589,7 +589,8 @@ int readuserfile(const char *file, struct userrec **ret)
 {
   const char salt1[] = SALT1;
   EncryptedStream stream(salt1);
-  stream.loadFile(file);
+  if (stream.loadFile(file))
+    return 1;
   return stream_readuserfile(stream, ret);
 }