Skip to content

Commit 08c0519

Browse files
authored
Merge branch 'v2/master' into memory-leak-fix-2208
2 parents bc8662b + 5e1c131 commit 08c0519

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ DD mmm YYYY - 2.9.x (to be released)
33

44
* Fix memory leak in streams
55
[Issue #2208 - @marcstern, @vloup, @JamesColeman-LW]
6+
* Fix: negative usec on log line when data type long is 32b
7+
[Issue #2753 - @ABrauer-CPT, @martinhsv]
68
* mlogc log-line parsing fails due to enhanced timestamp
79
[Issue #2682 - @bozhinov, @ABrauer-CPT, @martinhsv]
810
* Allow no-key, single-value JSON body

apache2/msc_util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ char *current_logtime(apr_pool_t *mp) {
11341134

11351135
apr_strftime(tstr, &len, 80, "%d/%b/%Y:%H:%M:%S.", &t);
11361136
apr_snprintf(tstr + strlen(tstr), 80 - strlen(tstr), "%06ld %c%.2d%.2d",
1137-
((long)now) % 1000000L,
1137+
(long)apr_time_usec(now),
11381138
t.tm_gmtoff < 0 ? '-' : '+',
11391139
t.tm_gmtoff / (60 * 60), (t.tm_gmtoff / 60) % 60);
11401140
return apr_pstrdup(mp, tstr);

0 commit comments

Comments
 (0)