session: fix use-after-free 39/22539/2
authorBenoît Ganne <bganne@cisco.com>
Thu, 18 Jul 2019 16:38:42 +0000 (18:38 +0200)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 11 Oct 2019 11:46:42 +0000 (11:46 +0000)
commit4adcdcd197a99c1adb0761ed9acedb3cfd1e37fb
treebd128b6463483dc0e8843c3ed19256cdaed31eab
parent88af6c3f4a22d12674e7c598d0c77d0254cf0f47
session: fix use-after-free

Make sure to reinitialize data before free-ing it.

Type: fix

Change-Id: I45727c456d0345204d4825ecdd9690c5ebeb5e94
Signed-off-by: Benoît Ganne <bganne@cisco.com>
(cherry picked from commit d4aeb84c3f066b755b723163da292eab95bd1ef9)
src/plugins/sctp/sctp.h
src/vnet/session/application.c
src/vnet/session/application_worker.c
src/vnet/tcp/tcp.c
src/vnet/udp/udp.c