tests/migration: Tighten error checking
commitd01127584e70f9242d3dd9bf4c0bdc1980254713
authorMarkus Armbruster <armbru@redhat.com>
Tue, 5 May 2020 10:19:02 +0000 (5 12:19 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 27 May 2020 05:45:25 +0000 (27 07:45 +0200)
treeed8f2f67b560d36bca85b8cb2d9c135a2224e584
parent5e959d2e6e698af86a7064ead87ebe47706d99c7
tests/migration: Tighten error checking

migrate_get_socket_address() neglects to check
visit_type_SocketAddressList() failure.  This smells like a leak, but
it actually will crash dereferencing @addrs.  Pass &error_abort to
remove the code smell.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20200505101908.6207-5-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
tests/qtest/migration-test.c