VPP-1338: fix ipsec api coverity warnings