Commit c8aa237c643e7cb44fe878eeb76399ff8b73821a
Committed by
Mark McLoughlin
1 parent
98ba2632
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>
Showing
1 changed file
with
1 additions
and
1 deletions
net.c
| ... | ... | @@ -494,7 +494,7 @@ ssize_t qemu_sendv_packet(VLANClientState *vc1, const struct iovec *iov, |
| 494 | 494 | |
| 495 | 495 | if (vc->link_down) |
| 496 | 496 | len = calc_iov_length(iov, iovcnt); |
| 497 | - if (vc->fd_readv) | |
| 497 | + else if (vc->fd_readv) | |
| 498 | 498 | len = vc->fd_readv(vc->opaque, iov, iovcnt); |
| 499 | 499 | else if (vc->fd_read) |
| 500 | 500 | len = vc_sendv_compat(vc, iov, iovcnt); | ... | ... |