diff --git a/indra/llfilesystem/llfilesystem.cpp b/indra/llfilesystem/llfilesystem.cpp
index b029723e11811d970948f13c1050f02d3b0f6923..af5e8bf8b7f3a93915aa328d8363f4d38104633c 100644
--- a/indra/llfilesystem/llfilesystem.cpp
+++ b/indra/llfilesystem/llfilesystem.cpp
@@ -164,6 +164,10 @@ BOOL LLFileSystem::read(U8* buffer, S32 bytes)
             success = FALSE;
         }
     }
+    else
+    {
+        success = FALSE;
+    }
 
     if (success == TRUE)
     {