summaryrefslogtreecommitdiffstats
path: root/src/svm/svmdbtool.c
diff options
context:
space:
mode:
authorGuanghua Zhang <ghzhang@fiberhome.com>2019-08-12 09:04:35 +0800
committerDave Barach <openvpp@barachs.net>2019-08-14 15:10:31 +0000
commitbb83b16a3c5ceb112589613f09a0c3af195f8fc9 (patch)
treeba4e030de3747ed55978bace185d6834d9cffce6 /src/svm/svmdbtool.c
parent8ef151c90064df208b425a95c4f17b1206813ccc (diff)
svm: fix svmtool and svmdbtool segment fault.
Type: fix Ticket: VPP-1741 Signed-off-by: Guanghua Zhang <ghzhang@fiberhome.com> Change-Id: Ifd3abaa5ec912378dbc7b73c4863aad26777dd7e (cherry picked from commit 60f16c22b44625d517830b4266a225d3abaccefc)
Diffstat (limited to 'src/svm/svmdbtool.c')
-rw-r--r--src/svm/svmdbtool.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/svm/svmdbtool.c b/src/svm/svmdbtool.c
index d50ca7be95c..ca8201bd22b 100644
--- a/src/svm/svmdbtool.c
+++ b/src/svm/svmdbtool.c
@@ -378,6 +378,8 @@ main (int argc, char **argv)
struct group _grp, *grp;
char *s, buf[128];
+ clib_mem_init_thread_safe (0, 128 << 20);
+
svmdbtool_main.uid = geteuid ();
svmdbtool_main.gid = getegid ();