]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
stats: Avoid assert-crash with dsync.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 13 Dec 2015 10:33:20 +0000 (12:33 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Sun, 13 Dec 2015 10:33:20 +0000 (12:33 +0200)
commit3a719a01a1790df053854d5245ace5ab6d0c3d13
tree364849cf72e66bfa7f52bbe9ad2d701b094f2e64
parent88e0ac0d8584f0e85f481d7887228471c7685d41
stats: Avoid assert-crash with dsync.

dsync creates two mail_users and they're deinited at the same time.
stats_global_user isn't set after the first one is deinited, so the next
deinit crashed because it wasn't set.

Fixes:
Panic: file stats-plugin.c: line 324 (stats_user_deinit): assertion failed:
(stats_global_user == user)
src/plugins/stats/stats-plugin.c