mirror of
https://passt.top/passt
synced 2024-11-05 12:21:12 +00:00
tcp: Dereference null return value, CWE-476
Not an issue with a sane kernel behaviour. Reported by Coverity. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
ceddcac74a
commit
71a00f1449
2
tcp.c
2
tcp.c
@ -2729,7 +2729,7 @@ int tcp_tap_handler(struct ctx *c, int af, const void *addr,
|
|||||||
|
|
||||||
/* New connection from tap */
|
/* New connection from tap */
|
||||||
if (!conn) {
|
if (!conn) {
|
||||||
if (th->syn && !th->ack)
|
if (opts && th->syn && !th->ack)
|
||||||
tcp_conn_from_tap(c, af, addr, th, opts, optlen, now);
|
tcp_conn_from_tap(c, af, addr, th, opts, optlen, now);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user