summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2019-08-17 18:30:09 +0200
committerMichael Brown2019-08-17 18:30:09 +0200
commitf1e6efa40be7bee1b29eb7ef7af5d0192edb888a (patch)
tree2484cbc29de4acf0aeb7f1817d5d26df286132df /src
parent[coverity] Override assumptions about wcrtomb() and hmac_init() (diff)
downloadipxe-f1e6efa40be7bee1b29eb7ef7af5d0192edb888a.tar.gz
ipxe-f1e6efa40be7bee1b29eb7ef7af5d0192edb888a.tar.xz
ipxe-f1e6efa40be7bee1b29eb7ef7af5d0192edb888a.zip
[ethernet] Avoid false positive Coverity warning
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src')
-rw-r--r--src/net/ethernet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/ethernet.c b/src/net/ethernet.c
index 707bdf90..3fcdafe6 100644
--- a/src/net/ethernet.c
+++ b/src/net/ethernet.c
@@ -134,7 +134,7 @@ int eth_pull ( struct net_device *netdev __unused, struct io_buffer *iobuf,
* frames, without requiring a full LLC protocol layer.
*/
if ( eth_is_llc_packet ( ethhdr ) ) {
- llc_proto = ( &ethhdr->h_protocol + 1 );
+ llc_proto = iobuf->data;
*net_proto = *llc_proto;
}