httpd = isc_nmhandle_getdata(handle);
- REQUIRE(httpd->state == RECV);
REQUIRE(httpd->handle == handle);
if (eresult != ISC_R_SUCCESS) {
goto cleanup_readhandle;
}
+ REQUIRE(httpd->state == RECV);
+
result = process_request(
httpd, region == NULL ? &(isc_region_t){ NULL, 0 } : region,
&buflen);
isc_httpd_t *httpd = (isc_httpd_t *)arg;
REQUIRE(VALID_HTTPD(httpd));
- REQUIRE(httpd->state == SEND);
REQUIRE(httpd->handle == handle);
isc_buffer_free(&httpd->sendbuffer);
goto cleanup_readhandle;
}
+ REQUIRE(httpd->state == SEND);
+
httpd->state = RECV;
httpd->sendhandle = NULL;