ITRS-Group / monitor-merlin

Module for Effortless Redundancy and Loadbalancing In Naemon
https://itrs-group.github.io/monitor-merlin/
GNU General Public License v2.0
22 stars 14 forks source link

UUID: Don't free bufferqueue if no node were found #81

Closed jacobbaungard closed 3 years ago

jacobbaungard commented 3 years ago

If no node where found, we would still call nm_bufferqueue_destroy. This would cause a segmentation fault, as we are trying to access an element of a NULL structure.

Instead we do it after the null pointer check.

Also ensure we free the bufferqueue created in net_accept_one if we don't find a matching node.