net: tcp2: Fix dereference after null check in tcp_in()
Fix dereference after null check in tcp_in(). Coverity CID :210051 Fixes #25783 Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
This commit is contained in:
parent
e520f35453
commit
fda94f7d06
1 changed files with 1 additions and 1 deletions
|
@ -1203,7 +1203,7 @@ next_state:
|
|||
}
|
||||
}
|
||||
|
||||
if (len) {
|
||||
if (th && len) {
|
||||
if (th_seq(th) == conn->ack) {
|
||||
if (tcp_data_get(conn, pkt) < 0) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue