Add NULL check before dereferencing inp_seclevel.
authorbluhm <bluhm@openbsd.org>
Mon, 27 Nov 2023 20:37:15 +0000 (20:37 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 27 Nov 2023 20:37:15 +0000 (20:37 +0000)
commit7bc8ee17c0758449a29fcdc9585f8ec59e141fd5
tree9f4f57c8c657fd98149af97626d80a889a07d714
parent745e73966326cee0b077befc87d7d55292ad974b
Add NULL check before dereferencing inp_seclevel.

In some cases inp may be NULL, so check that before passing
inp->inp_seclevel to ipsp_spd_lookup() or ip_output().

Missed in previous commit.
sys/netinet/tcp_input.c
sys/netinet/udp_usrreq.c