mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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:
parent
c9a19d5b95
commit
150dcd1aed
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue