diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-07-15 10:43:32 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2016-07-18 16:16:49 +0800 |
commit | 2c5e564f4d8309ee0f47029ab461c4c4459f43c4 (patch) | |
tree | f564a9c73266b9c845aa29cbe85f79fd69fcf6da | |
parent | 1ac6c07f4288b0a563310fad0cdabb3a47c85607 (diff) |
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>
-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); |