Initialize the TDB to NULL in ipsec_common_input() and
authormestre <mestre@openbsd.org>
Fri, 14 Sep 2018 23:40:10 +0000 (23:40 +0000)
committermestre <mestre@openbsd.org>
Fri, 14 Sep 2018 23:40:10 +0000 (23:40 +0000)
commit9c5f84c723204804944fefba4dde238dac13e646
tree52f4e82d81b767f88a4fb01369a367f368bfcfa5
parent3b521a6ec66f2a4de4e5b2e6eefba3e9b7a9da9d
Initialize the TDB to NULL in ipsec_common_input() and
ipsec_{input,output}_cb() so that in the case of sending or receiving a bogus
mbuf (NULL) we don't end up trying to dereference the TDB, while being an
uninitialized pointer, to increase the drops.

Coverity IDs 14733121473313 and 1473317.

OK mpi@ visa@
sys/netinet/ipsec_input.c
sys/netinet/ipsec_output.c