From 8305600d50717ff4b875ad109bf4feb335f6aae9 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Mon, 3 Nov 2014 18:23:00 -0800 Subject: [PATCH] Trims long `apache version' in the status call As reported at #714 status calls with long `apache version' name was broken. DNS queries cannot be so long. This field is now limited to 25 characters which is a valid size when encoded into base32 --- apache2/msc_status_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apache2/msc_status_engine.c b/apache2/msc_status_engine.c index e41775b4..e901016e 100644 --- a/apache2/msc_status_engine.c +++ b/apache2/msc_status_engine.c @@ -376,7 +376,7 @@ int DSOLOCAL msc_beacon_string (char *beacon_string, int beacon_string_max_len) } apr_snprintf(beacon_string, beacon_string_max_len, - "%.25s,%s,%s/%s,%s/%s,%s,%s,%s", + "%.25s,%.25s,%s/%s,%s/%s,%s,%s,%s", modsec, apache, apr, apr_loaded, pcre, pcre_loaded, lua, libxml, id); return_length: