3 Replies Latest reply on Nov 20, 2013 10:12 AM by Radoslav Husar

    Error in mod_proxy_cluster.c (httpd version mismatch)

    marcodanti Newbie

      I noticed what looks like an error inside mod_proxy_cluster.c in 1.2.5.Final.

      In function 'proxy_cluster_post_config' it says:

       

      #if AP_MODULE_MAGIC_AT_LEAST(20101223,1)

          if (sizew != sizeof(proxy_worker *) || sizeb != sizeof(proxy_balancer)) {

      #else

          if (sizew != sizeof(proxy_worker) || sizeb != sizeof(proxy_balancer)) {

      #endif

              ap_version_t version;

              ap_get_server_revision(&version);

       

              ap_log_error(APLOG_MARK, APLOG_WARNING, 0, s,

                           "httpd version %d.%d.%d mismatch detected", version.major, version.minor, version.patch);

       

      I am getting the "httpd version mismatch detected" even if the sizes are actually correct. I believe the asterisk in

       

          if (sizew != sizeof(proxy_worker *) || sizeb != sizeof(proxy_balancer)) {

       

      should be removed.