Check the reuse flag in CMD_AJP13_END_RESPONSE */
| 853 | |
| 854 | /* Check the reuse flag in CMD_AJP13_END_RESPONSE */ |
| 855 | apr_status_t ajp_parse_reuse(request_rec *r, ajp_msg_t *msg, |
| 856 | apr_byte_t *reuse) |
| 857 | { |
| 858 | apr_byte_t result; |
| 859 | apr_status_t rc; |
| 860 | |
| 861 | rc = ajp_msg_get_uint8(msg, &result); |
| 862 | if (rc != APR_SUCCESS) { |
| 863 | ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(00999) |
| 864 | "ajp_parse_reuse: ajp_msg_get_byte failed"); |
| 865 | return rc; |
| 866 | } |
| 867 | if (result != CMD_AJP13_END_RESPONSE) { |
| 868 | ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, APLOGNO(01000) |
| 869 | "ajp_parse_reuse: wrong type %s (0x%02x) expecting %s (0x%02x)", |
| 870 | ajp_type_str(result), result, |
| 871 | ajp_type_str(CMD_AJP13_END_RESPONSE), CMD_AJP13_END_RESPONSE); |
| 872 | return AJP_EBAD_HEADER; |
| 873 | } |
| 874 | return ajp_msg_get_uint8(msg, reuse); |
| 875 | } |
| 876 | |
| 877 | /* |
| 878 | * Allocate a msg to send data |
no test coverage detected