Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
IPSEC-MB: Use random & non-repeating IV (VPP-1642)
[vpp.git]
/
src
/
vnet
/
crypto
/
crypto.c
diff --git
a/src/vnet/crypto/crypto.c
b/src/vnet/crypto/crypto.c
index
58b1363
..
dbdb58b
100644
(file)
--- a/
src/vnet/crypto/crypto.c
+++ b/
src/vnet/crypto/crypto.c
@@
-119,8
+119,11
@@
vnet_crypto_set_handler (char *alg_name, char *engine)
if (id == 0)
continue;
od = vec_elt_at_index (cm->opt_data, id);
if (id == 0)
continue;
od = vec_elt_at_index (cm->opt_data, id);
- od->active_engine_index = p[0];
- cm->ops_handlers[id] = ce->ops_handlers[id];
+ if (ce->ops_handlers[id])
+ {
+ od->active_engine_index = p[0];
+ cm->ops_handlers[id] = ce->ops_handlers[id];
+ }
}
return 0;
}
return 0;