git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/memif: fix resource leak
[dpdk.git]
/
lib
/
librte_ipsec
/
ses.c
diff --git
a/lib/librte_ipsec/ses.c
b/lib/librte_ipsec/ses.c
index
82c765a
..
3d51ac4
100644
(file)
--- a/
lib/librte_ipsec/ses.c
+++ b/
lib/librte_ipsec/ses.c
@@
-1,5
+1,5
@@
/* SPDX-License-Identifier: BSD-3-Clause
/* SPDX-License-Identifier: BSD-3-Clause
- * Copyright(c) 2018 Intel Corporation
+ * Copyright(c) 2018
-2020
Intel Corporation
*/
#include <rte_ipsec.h>
*/
#include <rte_ipsec.h>
@@
-11,7
+11,8
@@
session_check(struct rte_ipsec_session *ss)
if (ss == NULL || ss->sa == NULL)
return -EINVAL;
if (ss == NULL || ss->sa == NULL)
return -EINVAL;
- if (ss->type == RTE_SECURITY_ACTION_TYPE_NONE) {
+ if (ss->type == RTE_SECURITY_ACTION_TYPE_NONE ||
+ ss->type == RTE_SECURITY_ACTION_TYPE_CPU_CRYPTO) {
if (ss->crypto.ses == NULL)
return -EINVAL;
} else {
if (ss->crypto.ses == NULL)
return -EINVAL;
} else {