]> granicus.if.org Git - curl/commitdiff
improve request initialization for test harness HTTP server
authorYang Tse <yangsita@gmail.com>
Fri, 25 Jan 2008 05:08:53 +0000 (05:08 +0000)
committerYang Tse <yangsita@gmail.com>
Fri, 25 Jan 2008 05:08:53 +0000 (05:08 +0000)
tests/server/sws.c

index f7a3f846ab6779e396170b57a33fd12f0dfb3819..816532bd58398375c9460a0ea9201e66a2e8936c 100644 (file)
@@ -1001,6 +1001,16 @@ int main(int argc, char *argv[])
     }
 #endif
 
+  /* full initialization for new request after connection */
+  memset(&req, 0, sizeof(req));
+  req.testno = DOCNUMBER_NOTHING;
+  req.open = TRUE;
+  req.auth_req = FALSE;
+  req.auth = FALSE;
+  req.digest = FALSE;
+  req.ntlm = FALSE;
+  req.pipelining = FALSE;
+
   do {
       if(get_request(msgsock, &req))
         /* non-zero means error, break out of loop */