-*- coding: utf-8 -*-
Changes with Apache 2.4.35
+ *) mod_proxy_balancer: Restore compatibility with APR 1.4. [Joe Orton]
+
Changes with Apache 2.4.34
*) SECURITY: CVE-2018-8011 (cve.mitre.org)
#include "apr_version.h"
#include "ap_hooks.h"
#include "apr_date.h"
-#include "apr_escape.h"
+#include "util_md5.h"
#include "mod_watchdog.h"
static const char *balancer_mutex_type = "proxy-balancer-shm";
{
apr_md5_ctx_t md5_ctx;
unsigned char md5[APR_MD5_DIGESTSIZE];
+ char id[2 * APR_MD5_DIGESTSIZE + 1];
char host_ip[64]; /* for any IPv[46] string */
server_addr_rec *sar;
int i;
}
}
apr_md5_final(md5, &md5_ctx);
+ ap_bin2hex(md5, APR_MD5_DIGESTSIZE, id);
- return apr_pescape_hex(p, md5, sizeof md5, 0);
+ return apr_pstrmemdup(p, id, sizeof(id) - 1);
}
/*