diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-02-09 11:59:15 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:41:57 -0600 |
commit | 6768da69e0520f0b13080da45559a74e9ffa18e4 (patch) | |
tree | 032db88064afd196fa545b0c39c8039f697db12f /io | |
parent | e3f9d718fbfa02412fb0e9744bd762659f4cfe0c (diff) | |
download | hqemu-6768da69e0520f0b13080da45559a74e9ffa18e4.zip hqemu-6768da69e0520f0b13080da45559a74e9ffa18e4.tar.gz |
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>
Diffstat (limited to 'io')
-rw-r--r-- | io/channel-socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io/channel-socket.c b/io/channel-socket.c index 22d2fd6..bf66a78 100644 --- a/io/channel-socket.c +++ b/io/channel-socket.c @@ -258,7 +258,7 @@ int qio_channel_socket_dgram_sync(QIOChannelSocket *ioc, int fd; trace_qio_channel_socket_dgram_sync(ioc, localAddr, remoteAddr); - fd = socket_dgram(localAddr, remoteAddr, errp); + fd = socket_dgram(remoteAddr, localAddr, errp); if (fd < 0) { trace_qio_channel_socket_dgram_fail(ioc); return -1; |