[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL V2 2/6] net: fix incorrect access to pointer
From: |
Jason Wang |
Subject: |
[Qemu-devel] [PULL V2 2/6] net: fix incorrect access to pointer |
Date: |
Tue, 19 Jul 2016 10:38:51 +0800 |
From: Paolo Bonzini <address@hidden>
This is not dereferencing the pointer, and instead checking only
the value of the pointer.
Signed-off-by: Paolo Bonzini <address@hidden>
Signed-off-by: Jason Wang <address@hidden>
---
net/eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/eth.c b/net/eth.c
index 95fe15c..c147c2e 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -211,7 +211,7 @@ void eth_get_protocols(const struct iovec *iov, int iovcnt,
*l4hdr_off, sizeof(l4hdr_info->hdr.tcp),
&l4hdr_info->hdr.tcp);
- if (istcp) {
+ if (*istcp) {
*l5hdr_off = *l4hdr_off +
TCP_HEADER_DATA_OFFSET(&l4hdr_info->hdr.tcp);
--
2.7.4
- [Qemu-devel] [PULL V2 0/6] Net patches, Jason Wang, 2016/07/18
- [Qemu-devel] [PULL V2 1/6] e1000e: fix incorrect access to pointer, Jason Wang, 2016/07/18
- [Qemu-devel] [PULL V2 2/6] net: fix incorrect access to pointer,
Jason Wang <=
- [Qemu-devel] [PULL V2 3/6] net: fix incorrect argument to iov_to_buf, Jason Wang, 2016/07/18
- [Qemu-devel] [PULL V2 4/6] tap: fix memory leak on failure to create a multiqueue tap device, Jason Wang, 2016/07/18
- [Qemu-devel] [PULL V2 5/6] MAINTAINERS: release Scott from being a rocker maintainer, Jason Wang, 2016/07/18
- [Qemu-devel] [PULL V2 6/6] e1000e: fix building without CONFIG_VMXNET3_PCI, Jason Wang, 2016/07/18
- Re: [Qemu-devel] [PULL V2 0/6] Net patches, Peter Maydell, 2016/07/19