From c8aa237c643e7cb44fe878eeb76399ff8b73821a Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 8 May 2009 12:34:17 +0200 Subject: [PATCH] net: Don't deliver to disabled interfaces in qemu_sendv_packet Signed-off-by: Jan Kiszka Signed-off-by: Mark McLoughlin --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index 2d24a7ce5f..42b6b93247 100644 --- a/net.c +++ b/net.c @@ -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);