unix-socket: don't doubly setup stats private area

pull/14398/head
Victor Julien 5 months ago
parent 13d2fa6092
commit 33589e6079

@ -1152,13 +1152,6 @@ static TmEcode UnixManager(ThreadVars *th_v, void *thread_data)
/* set the thread name */
SCLogDebug("%s started...", th_v->name);
int r = StatsSetupPrivate(
&th_v->stats, th_v->printable_name ? th_v->printable_name : th_v->name);
if (r != 0) {
SCLogError("stats setup failed with code %d", r);
return TM_ECODE_FAILED;
}
/* Set the threads capability */
th_v->cap_flags = 0;
SCDropCaps(th_v);

Loading…
Cancel
Save