qemu-char, io: fix ordering of arguments for UDP socket creation

Two wrongs make a right, but they should be fixed anyway.

Cc: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <1455015557-15106-1-git-send-email-pbonzini@redhat.com>
This commit is contained in:
Paolo Bonzini 2016-02-09 11:59:15 +01:00
parent c9a19d5b95
commit 150dcd1aed
2 changed files with 2 additions and 2 deletions

View file

@ -4386,7 +4386,7 @@ static CharDriverState *qmp_chardev_open_udp(const char *id,
QIOChannelSocket *sioc = qio_channel_socket_new();
if (qio_channel_socket_dgram_sync(sioc,
udp->remote, udp->local,
udp->local, udp->remote,
errp) < 0) {
object_unref(OBJECT(sioc));
return NULL;