ipsec: cli bug fixes 09/18109/2
authorKingwel Xie <kingwel.xie@ericsson.com>
Thu, 7 Mar 2019 11:34:30 +0000 (06:34 -0500)
committerNeale Ranns <nranns@cisco.com>
Thu, 7 Mar 2019 13:31:39 +0000 (13:31 +0000)
commitd3d1205087783eb36c9e44d98a33a0f01adb47c9
tree6b2f1a863e9af7ddd9f6b38590f1a62b37a3f31c
parent48ae19e9096fab98b14eaddaaa73e1b54bcbda8d
ipsec: cli bug fixes

1. fix wrong assignemnt of lik/rik
2. keys initialized to 0, to avoid using random data
   in stack. could cause memory overlapped then crash
3. show sa->id in hex format

Change-Id: Id0430aa49bb55c27cee4f97f8c0e4ec87515dcd2
Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
src/vnet/ipsec/ipsec_cli.c
src/vnet/ipsec/ipsec_format.c