write_http plugin: Be extra conservative in wh_reset_buffer().
authorFlorian Forster <octo@collectd.org>
Wed, 3 Aug 2016 19:35:36 +0000 (21:35 +0200)
committerFlorian Forster <octo@collectd.org>
Wed, 3 Aug 2016 19:43:58 +0000 (21:43 +0200)
commitcd2238b8b4f4ecd80c45862b5aeed3d3d73eddfe
treefc340dfa28a5e8bf47a338006c02072349b8ce37
parent9c9615b85fc73879d6d411b8f3bff5796d831fad
write_http plugin: Be extra conservative in wh_reset_buffer().

This function is called from wh_callback_free() which is used to clean up after
?alloc() failures, so the "send_buffer" field may actually be NULL.

Issue: #1835
src/write_http.c