Skip to content

Commit 09eec10

Browse files
author
Felipe Zimmerle
committed
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
1 parent b294061 commit 09eec10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/msc_status_engine.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ int DSOLOCAL msc_beacon_string (char *beacon_string, int beacon_string_max_len)
376376
}
377377

378378
apr_snprintf(beacon_string, beacon_string_max_len,
379-
"%.25s,%s,%s/%s,%s/%s,%s,%s,%s",
379+
"%.25s,%.25s,%s/%s,%s/%s,%s,%s,%s",
380380
modsec, apache, apr, apr_loaded, pcre, pcre_loaded, lua, libxml, id);
381381

382382
return_length:

0 commit comments

Comments
 (0)