/* Set up client input */
- rv = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR);
- if (rv) {
+ res = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR);
+ if (res) {
isapi_unload(isa, FALSE);
- return HTTP_INTERNAL_SERVER_ERROR; /* XXX: The wrong error */
+ return res;
}
if (ap_should_client_block(r)) {
while (read < *lpdwSize &&
((res = ap_get_client_block(r, (char*)lpvBuffer + read,
*lpdwSize - read)) > 0)) {
- if (res < 0) {
- *lpdwSize = 0;
- if (!apr_get_os_error())
- SetLastError(TODO_ERROR); /* XXX: Find the right error code */
- return FALSE;
- }
-
read += res;
}
return 0;
}
-/* XXX: Is there is still an O(n^2) attack possible here? Please detail. */
BOOL WINAPI ServerSupportFunction(HCONN hConn, DWORD dwHSERequest,
LPVOID lpvBuffer, LPDWORD lpdwSize,
LPDWORD lpdwDataType)