Fix potential Null deref.

pull/295/merge
Eric Leblond 13 years ago committed by Victor Julien
parent 8924d7598d
commit 7ec820d3ab

@ -1280,7 +1280,7 @@ TmEcode SCPerfOutputCounterSocket(json_t *cmd,
SCMutexUnlock(&tv->sc_perf_pctx.m); SCMutexUnlock(&tv->sc_perf_pctx.m);
if (filled == 1) { if (filled == 1) {
json_object_set_new(tm_array, pc->name->tm_name, jdata); json_object_set_new(tm_array, tv->name, jdata);
} }
tv = tv->next; tv = tv->next;
} }

Loading…
Cancel
Save