diff options
author | Jeff Trawick <trawick@apache.org> | 2011-02-27 14:38:17 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2011-02-27 14:38:17 +0000 |
commit | f63c7450501d026425f8c7c33cca9a5c0bfa674c (patch) | |
tree | 86d46409468eb7fd8ad8ee451709cb31e0c9bf3c /modules/proxy/ajp_msg.c | |
parent | 6df9deb2393e2945b2b64cea377fa0edf155e468 (diff) | |
download | httpd-f63c7450501d026425f8c7c33cca9a5c0bfa674c.tar.gz |
axe some useless or debug-inhibiting error checking
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1075064 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy/ajp_msg.c')
-rw-r--r-- | modules/proxy/ajp_msg.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/modules/proxy/ajp_msg.c b/modules/proxy/ajp_msg.c index 5930296019..b56c2d3f38 100644 --- a/modules/proxy/ajp_msg.c +++ b/modules/proxy/ajp_msg.c @@ -506,28 +506,9 @@ apr_status_t ajp_msg_create(apr_pool_t *pool, apr_size_t size, ajp_msg_t **rmsg) { ajp_msg_t *msg = (ajp_msg_t *)apr_pcalloc(pool, sizeof(ajp_msg_t)); - if (!msg) { - ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, - "ajp_msg_create(): can't allocate AJP message memory"); - return APR_ENOPOOL; - } - msg->server_side = 0; msg->buf = (apr_byte_t *)apr_palloc(pool, size); - - /* XXX: This should never happen - * In case if the OS cannont allocate 8K of data - * we are in serious trouble - * No need to check the alloc return value, cause the - * core dump is probably the best solution anyhow. - */ - if (msg->buf == NULL) { - ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, - "ajp_msg_create(): can't allocate AJP message memory"); - return APR_ENOPOOL; - } - msg->len = 0; msg->header_len = AJP_HEADER_LEN; msg->max_size = size; @@ -545,12 +526,6 @@ apr_status_t ajp_msg_create(apr_pool_t *pool, apr_size_t size, ajp_msg_t **rmsg) */ apr_status_t ajp_msg_copy(ajp_msg_t *smsg, ajp_msg_t *dmsg) { - if (dmsg == NULL) { - ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, - "ajp_msg_copy(): destination msg is null"); - return AJP_EINVAL; - } - if (smsg->len > smsg->max_size) { ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, "ajp_msg_copy(): destination buffer too " |