src/utils_ovs.c: Initialize pdb->sock to -1 earlier.
authorFlorian Forster <octo@collectd.org>
Mon, 20 Nov 2017 10:13:02 +0000 (11:13 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 20 Nov 2017 10:13:07 +0000 (11:13 +0100)
commitcae3cf94780b9992dfa6bae18417f0c5b03e4fab
tree653255bbfdfa8660d4369675ff79560ea9214fd7
parent5b5043bc15030278fdacf99c253a9cddaa9b136c
src/utils_ovs.c: Initialize pdb->sock to -1 earlier.

ovs_db_destroy() was called before the field was initialized, leading to
close(0) being called.
src/utils_ovs.c