powerdns plugin: Ensure powerdns_get_data() returns a non-NULL buffer.
authorFlorian Forster <octo@collectd.org>
Fri, 1 Dec 2017 11:05:21 +0000 (12:05 +0100)
committerFlorian Forster <octo@collectd.org>
Fri, 1 Dec 2017 13:20:11 +0000 (14:20 +0100)
commit5f676ef72a300ae4e8e979b4011cf7e3be505a6a
tree397adc55a4a0e2ad9bbb1dfc40010079ecce832c
parentff59046e8694bde7f4b965a5f6e35ed325572c82
powerdns plugin: Ensure powerdns_get_data() returns a non-NULL buffer.

Coverity is concerned that if buffer is NULL, strtok_r() is called with
two NULL arguments, causing a NULL pointer dereference.

CID: 37968
src/powerdns.c