Added socket stream and socket into SilcClientConnection context.
[silc.git] / lib / silchttp / tests / test_silchttpserver.c
index e8b3f0a2d095f0285558bfec72df7bbae18cf5a2..cb9050b14f93a6c09b1595de03c7a815e3417ca6 100644 (file)
@@ -65,7 +65,7 @@ static void http_callback_file(SilcHttpServer httpd, SilcHttpConnection conn,
     SILC_LOG_DEBUG(("Filename: '%s'", filename));
 
     if (!usephp) {
-      filedata = silc_file_readfile(filename, &data_len);
+      filedata = silc_file_readfile(filename, &data_len, NULL);
       if (!filedata) {
        silc_http_server_send_error(httpd, conn, "404 Not Found",
                                    "<body><h1>404 Not Found</h1><p>The page you are looking for cannot be located</body>");