]> granicus.if.org Git - curl/commitdiff
close the connection when a bad test number was requested
authorDaniel Stenberg <daniel@haxx.se>
Thu, 9 Dec 2004 09:58:25 +0000 (09:58 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Dec 2004 09:58:25 +0000 (09:58 +0000)
tests/server/sws.c

index 7ca14de08458c33e6295c03458eba5a41f20b68a..8503cf2fbfb9f289db41e688026658f8d4a2d5c4 100644 (file)
@@ -305,6 +305,7 @@ int ProcessRequest(struct httprequest *req)
       stream=fopen(filename, "rb");
       if(!stream) {
         logmsg("Couldn't open test file %d", req->testno);
+        req->open = FALSE; /* closes connection */
         return 0;
       }
       else {