diff options
| author | Paolo Bonzini | 2016-07-15 10:43:32 +0200 |
|---|---|---|
| committer | Jason Wang | 2016-07-18 10:16:49 +0200 |
| commit | 2c5e564f4d8309ee0f47029ab461c4c4459f43c4 (patch) | |
| tree | f564a9c73266b9c845aa29cbe85f79fd69fcf6da /net | |
| parent | e1000e: fix incorrect access to pointer (diff) | |
| download | qemu-2c5e564f4d8309ee0f47029ab461c4c4459f43c4.tar.gz qemu-2c5e564f4d8309ee0f47029ab461c4c4459f43c4.tar.xz qemu-2c5e564f4d8309ee0f47029ab461c4c4459f43c4.zip | |
net: fix incorrect access to pointer
This is not dereferencing the pointer, and instead checking only
the value of the pointer.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net')
| -rw-r--r-- | net/eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
