diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2019-04-15 08:48:10 +0000 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2019-04-15 12:55:35 +0000 |
commit | d0d6b942e954b5e26d04ba830ec1fe5fa1f4d4b6 (patch) | |
tree | c333beb4873f68108b1cc3779ec4107b68b8727c /src/plugins/crypto_ipsecmb | |
parent | 45df934daf89391a399651f171278a4c0cad30f7 (diff) |
crypto: fix coverity warnings
Change-Id: Id9dfd912517c44cf812953bd05ac04c9e172a2b7
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/crypto_ipsecmb')
-rw-r--r-- | src/plugins/crypto_ipsecmb/ipsecmb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/crypto_ipsecmb/ipsecmb.c b/src/plugins/crypto_ipsecmb/ipsecmb.c index 8e40e3ec2e9..d579c0d74a6 100644 --- a/src/plugins/crypto_ipsecmb/ipsecmb.c +++ b/src/plugins/crypto_ipsecmb/ipsecmb.c @@ -321,10 +321,12 @@ crypto_ipsecmb_iv_init (ipsecmb_main_t * imbm) if (read (fd, &ptd->cbc_iv, sizeof (ptd->cbc_iv)) != sizeof (ptd->cbc_iv)) { err = clib_error_return_unix (0, "'/dev/urandom' read failure"); + close (fd); return (err); } } + close (fd); return (NULL); } |