This is just hardening as the code is currently not used.
Submitted by: Elhanan Haenel <elhanan.haenel@gmail.com>
Reviewed by: rpluem
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1932498 13f79535-47bb-0310-9956-
ffa450edef68
--- /dev/null
+ *) mod_proxy_ajp: Fix a wrong comparison in ajp_msg_copy.
+ [Elhanan Haenel <elhanan.haenel@gmail.com>]
*/
apr_status_t ajp_msg_copy(ajp_msg_t *smsg, ajp_msg_t *dmsg)
{
- if (smsg->len > smsg->max_size) {
+ if (smsg->len > dmsg->max_size) {
ap_log_error(APLOG_MARK, APLOG_ERR, 0, NULL, APLOGNO(01082)
"ajp_msg_copy(): destination buffer too "
"small %" APR_SIZE_T_FMT ", max size is %" APR_SIZE_T_FMT,