summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2022-03-29 03:07:34 +0200
committerOle Tr�an <otroan@employees.org>2022-03-29 14:19:10 +0000
commit720820e64bf733fa0742fdf93da1e21b41db45c5 (patch)
tree1f002cf3715425afedcc4f6741f3b58b1bd98477 /src
parent851215a04ff53df2eb153133e3f47f514facde3a (diff)
crypto-openssl: fix seed calculation
Type: fix Fixes: 91f17dc Change-Id: I860b6d5d5e9cf47d84fde0a2c92be43125038694 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/crypto_openssl/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/crypto_openssl/main.c b/src/plugins/crypto_openssl/main.c
index 48846b14483..38da2766e13 100644
--- a/src/plugins/crypto_openssl/main.c
+++ b/src/plugins/crypto_openssl/main.c
@@ -526,7 +526,7 @@ crypto_openssl_init (vlib_main_t * vm)
pid = getpid ();
vec_add (seed_data, &t, sizeof (t));
vec_add (seed_data, &pid, sizeof (pid));
- vec_add (seed_data, seed_data, sizeof (seed_data));
+ vec_add (seed_data, &seed_data, sizeof (seed_data));
RAND_seed ((const void *) seed_data, vec_len (seed_data));