diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2009-05-08 12:34:17 +0200 |
---|---|---|
committer | Mark McLoughlin <markmc@redhat.com> | 2009-06-09 11:38:48 +0100 |
commit | c8aa237c643e7cb44fe878eeb76399ff8b73821a (patch) | |
tree | 6a987be7c333312b08eda7057e5356b01f993eea /net.c | |
parent | 98ba2632fc2695838657a972fce69270cb79dc77 (diff) |
net: Don't deliver to disabled interfaces in qemu_sendv_packet
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -494,7 +494,7 @@ ssize_t qemu_sendv_packet(VLANClientState *vc1, const struct iovec *iov, if (vc->link_down) len = calc_iov_length(iov, iovcnt); - if (vc->fd_readv) + else if (vc->fd_readv) len = vc->fd_readv(vc->opaque, iov, iovcnt); else if (vc->fd_read) len = vc_sendv_compat(vc, iov, iovcnt); |