fix error message

both info->format and fmt (for versions prio 2.4) contain the error message format but not the actual formatted error message
This commit is contained in:
arminabf 2016-09-26 12:03:50 +02:00 committed by Felipe Zimmerle
parent 137331748c
commit e7f029b55a
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277

View File

@ -1144,13 +1144,13 @@ static void hook_error_log(const char *file, int line, int level, apr_status_t s
em->line = info->line;
em->level = info->level;
em->status = info->status;
if (info->format != NULL) em->message = apr_pstrdup(msr->mp, info->format);
em->message = apr_pstrdup(msr->mp, errstr);
#else
if (file != NULL) em->file = apr_pstrdup(msr->mp, file);
em->line = line;
em->level = level;
em->status = status;
if (fmt != NULL) em->message = apr_pstrdup(msr->mp, fmt);
em->message = apr_pstrdup(msr->mp, errstr);
#endif
/* Remove \n from the end of the message */
if (em->message != NULL) {