Fix a segment fault issue in TLS 90/14290/1
authorPing Yu <ping.yu@intel.com>
Thu, 16 Aug 2018 23:11:05 +0000 (19:11 -0400)
committerPing Yu <ping.yu@intel.com>
Thu, 16 Aug 2018 23:11:05 +0000 (19:11 -0400)
commita0c29a9a8af284891e8805092a6cd379ea9d3657
treecf4274a2358d52a80cbeb0ab6868becc62ef3bb2
parente29cb67b7c731fb513723a7cd35a46cc6e44fbc1
Fix a segment fault issue in TLS

The root cause is it uses a dangling reference after memory move
Need to call session_alloc first, then use index to get the app
listener point

Change-Id: If5b7e0d6ddc761e5327660c47ce620e375319b4d
Signed-off-by: Ping Yu <ping.yu@intel.com>
src/vnet/tls/tls.c