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.
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 aNULL
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.