MCPcopy Create free account
hub / github.com/apache/httpd / ajp_alloc_data_msg

Function ajp_alloc_data_msg

modules/proxy/ajp_header.c:880–892  ·  view source on GitHub ↗

* Allocate a msg to send data */

Source from the content-addressed store, hash-verified

878 * Allocate a msg to send data
879 */
880apr_status_t ajp_alloc_data_msg(apr_pool_t *pool, char **ptr, apr_size_t *len,
881 ajp_msg_t **msg)
882{
883 apr_status_t rc;
884
885 if ((rc = ajp_msg_create(pool, *len, msg)) != APR_SUCCESS)
886 return rc;
887 ajp_msg_reset(*msg);
888 *ptr = (char *)&((*msg)->buf[6]);
889 *len = *len - 6;
890
891 return APR_SUCCESS;
892}
893
894/*
895 * Send the data message

Callers 1

ap_proxy_ajp_requestFunction · 0.85

Calls 2

ajp_msg_createFunction · 0.85
ajp_msg_resetFunction · 0.85

Tested by

no test coverage detected