Description of problem:
If virConnectListAllDomains() returns 0 on every iteration, the loop
will end with a vl == NULL and the pointer dereference in the qsort()
call will result in a segfault, so we need to check for NULL on completion of the loop to guard against that.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start fence_virtd with no domains present
Additional patch to solve when it doesnt stop until systemd timeout's and kills it (found by QE):
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.