migration: Fix seg with missing port
The command : migrate tcp:localhost: currently segs; fix it so it now says: error parsing address 'localhost:' and the same for -incoming. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
5cf0f48d2a
commit
9308ae5485
@ -112,8 +112,12 @@ void tcp_start_outgoing_migration(MigrationState *s,
|
|||||||
const char *host_port,
|
const char *host_port,
|
||||||
Error **errp)
|
Error **errp)
|
||||||
{
|
{
|
||||||
SocketAddress *saddr = tcp_build_address(host_port, errp);
|
Error *err = NULL;
|
||||||
socket_start_outgoing_migration(s, saddr, errp);
|
SocketAddress *saddr = tcp_build_address(host_port, &err);
|
||||||
|
if (!err) {
|
||||||
|
socket_start_outgoing_migration(s, saddr, &err);
|
||||||
|
}
|
||||||
|
error_propagate(errp, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
void unix_start_outgoing_migration(MigrationState *s,
|
void unix_start_outgoing_migration(MigrationState *s,
|
||||||
@ -174,8 +178,12 @@ static void socket_start_incoming_migration(SocketAddress *saddr,
|
|||||||
|
|
||||||
void tcp_start_incoming_migration(const char *host_port, Error **errp)
|
void tcp_start_incoming_migration(const char *host_port, Error **errp)
|
||||||
{
|
{
|
||||||
SocketAddress *saddr = tcp_build_address(host_port, errp);
|
Error *err = NULL;
|
||||||
socket_start_incoming_migration(saddr, errp);
|
SocketAddress *saddr = tcp_build_address(host_port, &err);
|
||||||
|
if (!err) {
|
||||||
|
socket_start_incoming_migration(saddr, &err);
|
||||||
|
}
|
||||||
|
error_propagate(errp, err);
|
||||||
}
|
}
|
||||||
|
|
||||||
void unix_start_incoming_migration(const char *path, Error **errp)
|
void unix_start_incoming_migration(const char *path, Error **errp)
|
||||||
|
Loading…
Reference in New Issue
Block a user