Browse Source

[ethernet] Avoid false positive Coverity warning

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 4 years ago
parent
commit
f1e6efa40b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/net/ethernet.c

+ 1
- 1
src/net/ethernet.c View File

134
 	 * frames, without requiring a full LLC protocol layer.
134
 	 * frames, without requiring a full LLC protocol layer.
135
 	 */
135
 	 */
136
 	if ( eth_is_llc_packet ( ethhdr ) ) {
136
 	if ( eth_is_llc_packet ( ethhdr ) ) {
137
-		llc_proto = ( &ethhdr->h_protocol + 1 );
137
+		llc_proto = iobuf->data;
138
 		*net_proto = *llc_proto;
138
 		*net_proto = *llc_proto;
139
 	}
139
 	}
140
 
140
 

Loading…
Cancel
Save