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
This commit is contained in:
Felipe Zimmerle 2014-11-03 18:23:00 -08:00
parent cee205b109
commit 8305600d50

View File

@ -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: